add log
This commit is contained in:
parent
920d08308a
commit
351fc09287
@ -55,7 +55,7 @@ func postUploadFile(w http.ResponseWriter, r *http.Request, a services.IAuthenti
|
|||||||
}
|
}
|
||||||
|
|
||||||
filename := uf.File.Value.GetFilename()
|
filename := uf.File.Value.GetFilename()
|
||||||
log.Info().Str("filename", filename).Msg("file is uploading...")
|
log.Info().Str("filename", filename).Msg("file uploaded")
|
||||||
|
|
||||||
resource := uf.IntoResource()
|
resource := uf.IntoResource()
|
||||||
|
|
||||||
|
|||||||
@ -157,6 +157,8 @@ func NewStore(dir string) *Store {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s.init(dir)
|
s.init(dir)
|
||||||
|
|
||||||
|
log.Info().Str("dir", s.dir).Msg("store initialized")
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user