Skip to content

Commit

Permalink
fix: add proper keys for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
masl committed Oct 30, 2023
1 parent 1c88646 commit f4fdd14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/ping/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func Handle() httprouter.Handle {

err := json.NewDecoder(r.Body).Decode(&p)
if err != nil {
slog.Error("ping error:", err)
slog.Error("ping error", "error", err)
w.WriteHeader(http.StatusBadRequest)
return
}
Expand Down
2 changes: 1 addition & 1 deletion web/start/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Handle(store storage.Store) httprouter.Handle {
return
}

slog.Info("cloud created: %s", c.Id.String())
slog.Info("cloud created", "cloud", c.Id.String())

w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
Expand Down

0 comments on commit f4fdd14

Please sign in to comment.