summaryrefslogtreecommitdiffhomepage
path: root/pkg/log/json.go
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-02-25 12:22:09 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-25 12:25:38 -0800
commit6def8ea6ac601daa9256a31f818db9f7eb532168 (patch)
tree0a1263e442b9a3216aa954ee55490cf1c053c461 /pkg/log/json.go
parent98b693e61b37a62f7b29ce1cab8b4c4c54fa044e (diff)
Fix nested logging.
PiperOrigin-RevId: 297175316
Diffstat (limited to 'pkg/log/json.go')
-rw-r--r--pkg/log/json.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/log/json.go b/pkg/log/json.go
index a278c8fc8..0943db1cc 100644
--- a/pkg/log/json.go
+++ b/pkg/log/json.go
@@ -62,7 +62,7 @@ type JSONEmitter struct {
}
// Emit implements Emitter.Emit.
-func (e JSONEmitter) Emit(level Level, timestamp time.Time, format string, v ...interface{}) {
+func (e JSONEmitter) Emit(_ int, level Level, timestamp time.Time, format string, v ...interface{}) {
j := jsonLog{
Msg: fmt.Sprintf(format, v...),
Level: level,