Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 78b14b6

Browse files
mstoykovankur22
authored andcommitted
log serializer: fix loki log output
logs going through loki use the `hooks` logrus concept. The serialzer was not copying this which meant logs wouldn't have been send to loki.
1 parent 4518aed commit 78b14b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

log/logger.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ func (l *Logger) ConsoleLogFormatterSerializer() *Logger {
160160
Out: l.Out,
161161
Level: l.Level,
162162
Formatter: &consoleLogFormatter{l.Formatter},
163+
Hooks: l.Hooks,
163164
},
164165
}
165166
}

0 commit comments

Comments
 (0)