core: Add timestamps to tusd log (#276)

* Add timestamp to log

* tus/tusd#274 Add timestamp to log
This commit is contained in:
Juanjo Rodriguez 2019-06-02 16:17:25 +02:00 committed by Marius
parent 79fcf60e79
commit 10e0bb1fb9
1 changed files with 1 additions and 1 deletions

View File

@ -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