etcdmain: fix log output

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-05-04 20:07:08 -07:00
parent 03bf62f569
commit 12e2d4a15c

View File

@ -158,6 +158,9 @@ func startGRPCProxy(cmd *cobra.Command, args []string) {
},
Encoding: "json",
EncoderConfig: zap.NewProductionEncoderConfig(),
OutputPaths: []string{"stderr"},
ErrorOutputPaths: []string{"stderr"},
}
if grpcProxyDebug {
lcfg.Level = zap.NewAtomicLevelAt(zap.DebugLevel)