Skip to content

Commit b2b2656

Browse files
committed
Fix log message typo
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
1 parent 84aa307 commit b2b2656

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

httpserver/handler_wrapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ func (hw *handlerWrapper) ServeHTTP(w http.ResponseWriter, r *http.Request) {
318318
)
319319

320320
logger = logger.With(
321-
log.Int("http_reponse_size", ww.BytesWritten()),
321+
log.Int("http_response_size", ww.BytesWritten()),
322322
log.Int("http_response_status", ww.Status()),
323323
log.String("http_request_path_pattern", chi.RouteContext(ctx).RoutePattern()),
324324
)

unit/unit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (u *Unit) RunContext(parentCtx context.Context) error {
189189
cancel(fmt.Errorf("traces exporter crashed: %w", err))
190190
}
191191

192-
logger.Info("metrics server shutdown")
192+
logger.Info("trace exporter shutdown")
193193
}()
194194

195195
var registry prometheus.Registerer
@@ -404,7 +404,7 @@ func (u *Unit) loadConfigurationFromFile(filename string) error {
404404
if _, ok := config["unit"]; ok {
405405
encoded, _ := json.Marshal(config["unit"])
406406
if err := json.Unmarshal(encoded, u.config); err != nil {
407-
return fmt.Errorf("cannot decode %q config section: %w", "uniq", err)
407+
return fmt.Errorf("cannot decode %q config section: %w", "unit", err)
408408
}
409409
}
410410

0 commit comments

Comments
 (0)