Fixed logfile name

This commit is contained in:
マリウス 2021-12-26 20:58:32 -05:00
parent 5ab3dfe27c
commit d8d39d2ce6
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

View File

@ -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()
}