mirror of
https://github.com/mrusme/superhighway84.git
synced 2024-11-03 09:40:13 +00:00
Fixed logfile name
This commit is contained in:
parent
5ab3dfe27c
commit
d8d39d2ce6
@ -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…
Reference in New Issue
Block a user