Skip to content

Commit

Permalink
taking suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
binaek committed Dec 22, 2021
1 parent 13b17ef commit 7465a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion global.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
DefaultOptions = &LoggerOptions{
Level: DefaultLevel,
Output: DefaultOutput,
TimeFn: func() time.Time { return time.Now() },
TimeFn: time.Now,
}
)

Expand Down
2 changes: 1 addition & 1 deletion intlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func newLogger(opts *LoggerOptions) *intLogger {
json: opts.JSONFormat,
name: opts.Name,
timeFormat: TimeFormat,
timeFn: func() time.Time { return time.Now() },
timeFn: time.Now,
disableTime: opts.DisableTime,
mutex: mutex,
writer: newWriter(output, opts.Color),
Expand Down

0 comments on commit 7465a0a

Please sign in to comment.