cli: Change timestamp to microseconds precision in log
@@ -7,8 +7,8 @@ import (
"github.com/tus/tusd/pkg/handler"
)
-var stdout = log.New(os.Stdout, "[tusd] ", log.Ldate|log.Ltime)
-var stderr = log.New(os.Stderr, "[tusd] ", log.Ldate|log.Ltime)
+var stdout = log.New(os.Stdout, "[tusd] ", log.LstdFlags|log.Lmicroseconds)
+var stderr = log.New(os.Stderr, "[tusd] ", log.LstdFlags|log.Lmicroseconds)
func logEv(logOutput *log.Logger, eventName string, details ...string) {
handler.LogEvent(logOutput, eventName, details...)
