This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

kelda: Never log grpc messages, even at debug

The GRPC log messages have no value and are incredibly annoying when
developing the system.  This patch disable them.
  • Loading branch information...
ejj committed Nov 24, 2017
1 parent 6245054 commit 9a9208b4f53999291e471154d564d128377dae3c
Showing with 1 addition and 5 deletions.
  1. +1 −5 kelda.go
View
@@ -58,12 +58,8 @@ func main() {
log.SetOutput(file)
}
// GRPC spews a lot of useless log messages so we discard its logs, unless
// we are in debug mode
// GRPC spews a lot of useless log messages so we discard its logs.
grpclog.SetLogger(l_mod.New(ioutil.Discard, "", 0))
if level == log.DebugLevel {
grpclog.SetLogger(log.StandardLogger())
}
if len(flag.Args()) == 0 {
usage()

0 comments on commit 9a9208b

Please sign in to comment.