Fixed logfile name

pull/17/head
マリウス 3 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 ( import (
"context" "context"
"embed" "embed"
"fmt"
"time" "time"
"log" "log"
@ -21,7 +20,7 @@ var EMBEDFS embed.FS
func NewLogger(filename string) (*zap.Logger, error) { func NewLogger(filename string) (*zap.Logger, error) {
cfg := zap.NewProductionConfig() cfg := zap.NewProductionConfig()
cfg.OutputPaths = []string{ cfg.OutputPaths = []string{
fmt.Sprintf("%s.log", filename), filename,
} }
return cfg.Build() return cfg.Build()
} }

Loading…
Cancel
Save