summaryrefslogtreecommitdiffhomepage
path: root/pkg/log/glog.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-10 02:19:26 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-10 02:19:26 +0000
commit4fa86d8e40dd4bb595b7ed33290021acedb001d5 (patch)
tree32eecd1209588433b2e8ff29fb8f2fa5e6969d29 /pkg/log/glog.go
parentaec346f392a983687719a813ed58c6f8b54aede9 (diff)
parent78126611e61e26269d804dd18a5229820c4ddced (diff)
Merge release-20200323.0-119-g7812661 (automated)
Diffstat (limited to 'pkg/log/glog.go')
-rw-r--r--pkg/log/glog.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/log/glog.go b/pkg/log/glog.go
index b4f7bb5a4..f57c4427b 100644
--- a/pkg/log/glog.go
+++ b/pkg/log/glog.go
@@ -25,7 +25,7 @@ import (
// GoogleEmitter is a wrapper that emits logs in a format compatible with
// package github.com/golang/glog.
type GoogleEmitter struct {
- Writer
+ *Writer
}
// pid is used for the threadid component of the header.
@@ -46,7 +46,7 @@ var pid = os.Getpid()
// line The line number
// msg The user-supplied message
//
-func (g *GoogleEmitter) Emit(depth int, level Level, timestamp time.Time, format string, args ...interface{}) {
+func (g GoogleEmitter) Emit(depth int, level Level, timestamp time.Time, format string, args ...interface{}) {
// Log level.
prefix := byte('?')
switch level {
@@ -81,5 +81,5 @@ func (g *GoogleEmitter) Emit(depth int, level Level, timestamp time.Time, format
message := fmt.Sprintf(format, args...)
// Emit the formatted result.
- fmt.Fprintf(&g.Writer, "%c%02d%02d %02d:%02d:%02d.%06d % 7d %s:%d] %s\n", prefix, int(month), day, hour, minute, second, microsecond, pid, file, line, message)
+ fmt.Fprintf(g.Writer, "%c%02d%02d %02d:%02d:%02d.%06d % 7d %s:%d] %s\n", prefix, int(month), day, hour, minute, second, microsecond, pid, file, line, message)
}