Skip to content

Commit c557224

Browse files
committed
Fix: still not logging
Probably buffering again...
1 parent 780c8e6 commit c557224

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ func (l *Logger) writeLog(severety severety, message string, obj interface{}) {
167167
if len(j) >= maxSize {
168168
l.Errorf("log entry exeed max size of %d bytes: %.100000s", maxSize, j)
169169
} else {
170-
defer stdout.Flush()
171-
stdout.Write(j)
170+
fmt.Printf("%s\n", j)
172171
}
173172
}
174173

0 commit comments

Comments
 (0)