Fixed logfile name

pull/17/head
マリウス 2 years ago
parent 5ab3dfe27c
commit d8d39d2ce6
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

@ -3,7 +3,6 @@ package main
import (
"context"
"embed"
"fmt"
"time"
"log"
@ -21,7 +20,7 @@ var EMBEDFS embed.FS
func NewLogger(filename string) (*zap.Logger, error) {
cfg := zap.NewProductionConfig()
cfg.OutputPaths = []string{
fmt.Sprintf("%s.log", filename),
filename,
}
return cfg.Build()
}

Loading…
Cancel
Save