-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: switch to slog for logging #253
Conversation
api/api_test.go
Outdated
@@ -20,13 +21,15 @@ func TestRouteRegistration(t *testing.T) { | |||
if registrar, ok := interface{}(pushPlugin).(api.APIRouteRegistrar); ok { | |||
registrar.RegisterRoutes() | |||
} else { | |||
t.Fatal("pushPlugin does NOT implement APIRouteRegistrar") | |||
t.Error("pushPlugin does NOT implement APIRouteRegistrar") | |||
os.Exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should leave this as it was. It's not related to slog, and there's no reason to change it.
api/api_test.go
Outdated
} | ||
|
||
// Create a test request to one of the registered routes | ||
req, err := http.NewRequest(http.MethodGet, "/v1/fcm/someToken", nil) | ||
if err != nil { | ||
t.Fatal(err) | ||
t.Error(err) | ||
os.Exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should leave this as it was. It's not related to slog, and there's no reason to change it.
cmd/adder/main.go
Outdated
|
||
// Start debug listener | ||
if cfg.Debug.ListenPort > 0 { | ||
logger.Infof( | ||
logger.Info( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs an inner fmt.Sprintf()
Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
a0bcbe0
to
dc690d0
Compare
Fixes #152