Skip to content

Commit

Permalink
Fix: still not logging
Browse files Browse the repository at this point in the history
Probably buffering again...
  • Loading branch information
karl-gustav committed Mar 16, 2022
1 parent 780c8e6 commit c557224
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ func (l *Logger) writeLog(severety severety, message string, obj interface{}) {
if len(j) >= maxSize {
l.Errorf("log entry exeed max size of %d bytes: %.100000s", maxSize, j)
} else {
defer stdout.Flush()
stdout.Write(j)
fmt.Printf("%s\n", j)
}
}

Expand Down

0 comments on commit c557224

Please sign in to comment.