From a57bc393e43ae203c928cf72a32dbe33340f0fcd Mon Sep 17 00:00:00 2001 From: lucus lee Date: Wed, 11 Dec 2019 11:02:44 +0900 Subject: [PATCH] Fix plugin crash without -verbose flag --- log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.go b/log.go index 7648db61..a9e5bc5e 100644 --- a/log.go +++ b/log.go @@ -23,7 +23,7 @@ func (l *logHelper) Write(p []byte) (n int, err error) { logger.Printf("%s%s\n", l.prefix, p) return len(p), nil } - return + return len(p), nil } func newLogHelper(prefix string) *logHelper {