1
0
Fork 0

fix: enable stdio logging when otlp is enabled

This commit is contained in:
Landry Benguigui 2025-10-17 16:06:06 +02:00 committed by GitHub
parent 862116c050
commit 6e0012cb0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 161 additions and 7 deletions

View file

@ -41,9 +41,6 @@ func (h *otelLoggerHook) Run(e *zerolog.Event, level zerolog.Level, message stri
return
}
// Discard the event to avoid double logging.
e.Discard()
var record otellog.Record
record.SetTimestamp(time.Now().UTC())
record.SetSeverity(otelLogSeverity(level))