Skip to content

Commit

Permalink
Log attrs too
Browse files Browse the repository at this point in the history
  • Loading branch information
Sploder12 committed Jan 29, 2025
1 parent 73a244e commit 6746b34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/collector/sysinfo/sysinfo_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ func TestCollectWindows(t *testing.T) {

if !l.AssertLevels(t, tc.logs) {
for _, call := range l.HandleCalls {
t.Logf("Logged %v: %s\n", call.Level, call.Message)
t.Logf("Logged %v %s:", call.Level, call.Message)
call.Attrs(func(attr slog.Attr) bool {
t.Logf("%s", attr.String())
return true
})
}
}
})
Expand Down

0 comments on commit 6746b34

Please sign in to comment.