This commit is contained in:
pb 2024-08-06 11:10:53 +02:00
parent 29fcd0e34a
commit 1f83148aca

View File

@ -56,7 +56,9 @@ func (w *LokiWriter) Write(p []byte) (n int, err error) {
labels["level"] = level
// Add label that have been added to the event
// A bit unsafe since we don't know what could be stored in the event
// but we can't access this object once passed to the multilevel writter
for k,v := range(event){
if k != "level" && k != "time" && k != "message"{
data := v.(map[string]string)