Skip to content

Commit

Permalink
core: Add timestamps to tusd log (#276)
Browse files Browse the repository at this point in the history
* Add timestamp to log

* #274 Add timestamp to log
  • Loading branch information
jjrodrig authored and Acconut committed Jun 2, 2019
1 parent 79fcf60 commit 10e0bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Config struct {

func (config *Config) validate() error {
if config.Logger == nil {
config.Logger = log.New(os.Stdout, "[tusd] ", 0)
config.Logger = log.New(os.Stdout, "[tusd] ", log.Ldate | log.Lmicroseconds)
}

base := config.BasePath
Expand Down

0 comments on commit 10e0bb1

Please sign in to comment.