use production logger as default logger
This commit is contained in:
parent
b5d374c0ae
commit
2ffd30dd0f
2
main.go
2
main.go
|
@ -22,7 +22,7 @@ type configData struct {
|
||||||
func main() {
|
func main() {
|
||||||
configPath := "config.toml"
|
configPath := "config.toml"
|
||||||
|
|
||||||
log := zap.L()
|
log, _ := zap.NewProduction()
|
||||||
|
|
||||||
flag.StringVar(&configPath, "c", configPath, "path to configuration file")
|
flag.StringVar(&configPath, "c", configPath, "path to configuration file")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue