Commit 6b6b80e
authored
fix: route all slog output through component logger (#91)
Set slog.SetDefault after creating the component logger so that
direct slog.Info() calls in pkg/tools/loop.go and other packages
use the same handler (JSON in K8s, color text in terminals) instead
of Go's default text format.
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Pavel Anni <panni@redhat.com>1 parent bdd8048 commit 6b6b80e
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
0 commit comments