Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ihippik committed Aug 20, 2023
1 parent 49021f2 commit e3dba45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func main() {
if err := sentry.Init(sentry.ClientOptions{
Dsn: "myDSN",
}); err != nil {
slog.Error("init sentry", err)
slog.Error("init sentry", "err", err)
}

defer sentry.Flush(time.Second * 2)
Expand Down
5 changes: 0 additions & 5 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import (
"github.com/getsentry/sentry-go"
)

// SentryHandlerOpts represent Sentry hooks options.
type SentryHandlerOpts struct {
Opts slog.HandlerOptions
}

// SentryHandler is a Handler that writes log records to the Sentry.
type SentryHandler struct {
slog.Handler
Expand Down

0 comments on commit e3dba45

Please sign in to comment.