Skip to content

Commit 64c28dd

Browse files
committed
fix: Use log attribute helper methods
1 parent 73b05d2 commit 64c28dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

watchdog/endpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func monitorEndpoint(ep *endpoint.Endpoint, cfg *config.Config, extraLabels []st
2222
for {
2323
select {
2424
case <-ctx.Done():
25-
slog.Warn("Canceling current execution", "group", ep.Group, "endpoint", ep.Name, "key", ep.Key())
25+
slog.Warn("Canceling current execution", ep.GetLogAttribute())
2626
return
2727
case <-ticker.C:
2828
executeEndpoint(ep, cfg, extraLabels)

watchdog/suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func monitorSuite(s *suite.Suite, cfg *config.Config, extraLabels []string, ctx
2121
for {
2222
select {
2323
case <-ctx.Done():
24-
slog.Warn("Canceling monitoring for suite", "name", s.Name)
24+
slog.Warn("Canceling current execution", s.GetLogAttribute())
2525
return
2626
case <-ticker.C:
2727
executeSuite(s, cfg, extraLabels)

0 commit comments

Comments
 (0)