Skip to content

Commit

Permalink
remove time from dev logs. Closes #167
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Winnicki committed Aug 4, 2017
1 parent 53760a8 commit 731be64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/event-gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/docker/libkv/store/etcd"
"github.com/prometheus/client_golang/prometheus"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"

"github.com/serverless/event-gateway/api"
"github.com/serverless/event-gateway/db"
Expand Down Expand Up @@ -53,6 +54,7 @@ func main() {
logCfg.Level = zap.NewAtomicLevelAt(*logLevel)
if *developmentMode {
logCfg = zap.NewDevelopmentConfig()
logCfg.EncoderConfig.EncodeTime = func(t time.Time, enc zapcore.PrimitiveArrayEncoder) {}
logCfg.DisableCaller = true
logCfg.DisableStacktrace = true
logCfg.Level = zap.NewAtomicLevelAt(*logLevel)
Expand Down

0 comments on commit 731be64

Please sign in to comment.