Skip to content

Commit

Permalink
fix(pkg.tasker): use log.New() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed May 2, 2021
1 parent 83f258d commit 0cf2c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tasker/tasker.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func New(opt Option) *Tasker {
log.Fatalf("invalid tz location: %s", opt.Tz)
}

logger := log.Default()
logger := log.New(os.Stderr, "", log.LstdFlags)
if opt.Out != "" {
if _, err := os.Stat(filepath.Dir(opt.Out)); err != nil {
log.Fatalf("output dir does not exist: %s", filepath.Base(opt.Out))
Expand Down

0 comments on commit 0cf2c07

Please sign in to comment.