Skip to content

Commit

Permalink
core: drop Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Oct 22, 2023
1 parent b1cb583 commit 34ebdbf
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 22 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ jobs:
- name: Prepare secrets
run: |
echo -n "$LICENSE_SECRET" | base64 -d > core/secrets/license-secret.txt
echo -n "$SENTRY_DSN" | base64 -d > core/secrets/sentry-dsn.txt
env:
LICENSE_SECRET: ${{ secrets.LICENSE_SECRET }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- name: Install core
run: raco pkg install -D --batch --auto --name franz core/
- name: Install FranzCross
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ jobs:
- name: Prepare secrets
run: |
echo -n "$LICENSE_SECRET" | base64 --decode -o core/secrets/license-secret.txt
echo -n "$SENTRY_DSN" | base64 --decode -o core/secrets/sentry-dsn.txt
env:
LICENSE_SECRET: ${{ secrets.LICENSE_SECRET }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- name: Build core arm64
run: |
raco cross \
Expand Down Expand Up @@ -77,10 +75,8 @@ jobs:
- name: Prepare secrets
run: |
echo -n "$LICENSE_SECRET" | base64 --decode -o core/secrets/license-secret.txt
echo -n "$SENTRY_DSN" | base64 --decode -o core/secrets/sentry-dsn.txt
env:
LICENSE_SECRET: ${{ secrets.LICENSE_SECRET }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- name: Install core
run: raco pkg install -D --batch --auto --name franz core/
- name: Build manual
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build_win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ jobs:
run: |
echo -n "$DEVELOPER_ID_CER_P12" | base64 -d > developer_id.p12
echo -n "$LICENSE_SECRET" | base64 -d > core/secrets/license-secret.txt
echo -n "$SENTRY_DSN" | base64 -d > core/secrets/sentry-dsn.txt
shell: bash
env:
DEVELOPER_ID_CER_P12: ${{ secrets.DEVELOPER_ID_CER_P12 }}
LICENSE_SECRET: ${{ secrets.LICENSE_SECRET }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- name: Install core
run: |
raco pkg install -D --batch --auto --force libsqlite3
Expand Down
1 change: 0 additions & 1 deletion core/info.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
["noise-serde-lib" #:version "0.4"]
"protocol-buffers-lib"
["sasl-lib" #:version "1.3"]
["sentry-lib" #:version "0.2.2"]
"snappy-lib"
"threading-lib"))
(define build-deps '("rackunit-lib"))
Expand Down
12 changes: 3 additions & 9 deletions core/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
noise/backend
noise/serde
racket/file
sentry

"appdata.rkt"
"logger.rkt"
Expand Down Expand Up @@ -45,16 +44,11 @@
[else
(build-application-path "metadata.sqlite3")]))
(log-franz-debug "database path: ~a" database-path)
(parameterize ([current-connection (make-database database-path)]
[current-sentry (make-sentry sentry-dsn #:release franz-version)])
(parameterize ([current-connection (make-database database-path)])
(migrate!)
(maybe-adjust-trial-deadline)
(parameterize ([current-sentry-user (make-sentry-user #:id (get-buid))]
[http:current-user-agent (make-user-agent)])
(dynamic-wind
(λ () (void))
(λ () (proc))
(λ () (sentry-stop))))))
(parameterize ([http:current-user-agent (make-user-agent)])
(proc))))

(define (main in-fd out-fd)
(call-with-main-parameterization
Expand Down
3 changes: 0 additions & 3 deletions core/pool.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
racket/list
racket/match
racket/promise
sentry
threading
"broker.rkt"
"connection-details.rkt"
Expand Down Expand Up @@ -55,7 +54,6 @@
(define res-state
(with-handlers ([exn:fail?
(lambda (e)
(sentry-capture-exception! e)
(begin0 s
((error-display-handler)
(format "pool: ~a" (exn-message e))
Expand Down Expand Up @@ -492,7 +490,6 @@
(lambda (res-or-err)
(begin0 res-or-err
(when (exn:fail? res-or-err)
(sentry-capture-exception! res-or-err)
(raise res-or-err))))))


Expand Down
1 change: 0 additions & 1 deletion core/secret.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@
(provide id)) ...)]))

(define-secrets
[sentry-dsn "secrets/sentry-dsn.txt"]
[license-secret "secrets/license-secret.txt"])

0 comments on commit 34ebdbf

Please sign in to comment.