Skip to content

Commit

Permalink
log: fix nonsense characters in log (#5676) (#5677)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsark authored Feb 19, 2025
1 parent 45669d7 commit d997b14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/mount_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,10 @@ func makeDaemonForSvc(c *cli.Context, m meta.Meta, metaUrl, listenAddr string) e
if godaemon.Stage() == 0 {
var err error
attrs.Stdout, err = os.OpenFile(logfile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
logger.Infof("open log file %s: %s", logfile, err)
if err != nil {
logger.Errorf("open log file %s: %s", logfile, err)
} else {
logger.Infof("open log file %s", logfile)
}

conn, err := net.DialTimeout("tcp", listenAddr, 500*time.Millisecond)
Expand Down

0 comments on commit d997b14

Please sign in to comment.