core: Add timestamps to tusd log (#276)
* Add timestamp to log * tus/tusd#274 Add timestamp to log
This commit is contained in:
parent
79fcf60e79
commit
10e0bb1fb9
|
@ -47,7 +47,7 @@ type Config struct {
|
||||||
|
|
||||||
func (config *Config) validate() error {
|
func (config *Config) validate() error {
|
||||||
if config.Logger == nil {
|
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
|
base := config.BasePath
|
||||||
|
|
Loading…
Reference in New Issue