Skip to content

Commit e3dba45

Browse files
committed
Refactoring
1 parent 49021f2 commit e3dba45

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626
if err := sentry.Init(sentry.ClientOptions{
2727
Dsn: "myDSN",
2828
}); err != nil {
29-
slog.Error("init sentry", err)
29+
slog.Error("init sentry", "err", err)
3030
}
3131

3232
defer sentry.Flush(time.Second * 2)

handler.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ import (
88
"github.com/getsentry/sentry-go"
99
)
1010

11-
// SentryHandlerOpts represent Sentry hooks options.
12-
type SentryHandlerOpts struct {
13-
Opts slog.HandlerOptions
14-
}
15-
1611
// SentryHandler is a Handler that writes log records to the Sentry.
1712
type SentryHandler struct {
1813
slog.Handler

0 commit comments

Comments
 (0)