chore: reformat the default log string

This commit is contained in:
Andy Pan 2023-03-23 14:40:49 +08:00
parent 0313effc53
commit 3110e41921
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ var (
return 1 return 1
}() }()
defaultLogger = Logger(log.New(os.Stderr, "", log.LstdFlags)) defaultLogger = Logger(log.New(os.Stderr, "[ants]: ", log.LstdFlags|log.Lmsgprefix|log.Lmicroseconds))
// Init an instance pool when importing ants. // Init an instance pool when importing ants.
defaultAntsPool, _ = NewPool(DefaultAntsPoolSize) defaultAntsPool, _ = NewPool(DefaultAntsPoolSize)