Skip to content

Commit

Permalink
remove time ahead of logs entry
Browse files Browse the repository at this point in the history
  • Loading branch information
yzs981130 committed Aug 18, 2020
1 parent 6d30b90 commit 881523e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func main() {
logdir = flag.String("logdir", "/log", "absolute path to log dir")
flag.Parse()

log.SetFlags(log.Ldate | log.Ltime)
log.SetFlags(log.Flags() &^ (log.Ldate | log.Ltime))
logf, err := rotatelogs.New(
filepath.Join(*logdir, "PodLifecycle_log.%Y%m%d%H%M"),
rotatelogs.WithLinkName(filepath.Join(*logdir, "PodLifecycle_log")),
Expand Down

0 comments on commit 881523e

Please sign in to comment.