aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/log/log.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/log/log.go b/pkg/log/log.go
index 78c9ba0e0..780acb253 100644
--- a/pkg/log/log.go
+++ b/pkg/log/log.go
@@ -100,3 +100,10 @@ func Fatal(err error) {
func Fatalf(msg string, args ...interface{}) {
golog.Fatalf(msg, args...)
}
+
+type VerboseWriter int
+
+func (w VerboseWriter) Write(data []byte) (int, error) {
+ Logf(int(w), "%s", data)
+ return len(data), nil
+}