fix(upload): add some logging and cleanup
This commit is contained in:
@@ -27,7 +27,6 @@ func Start() {
|
||||
if err := http.ListenAndServe(":3000", nil); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func registerAuthorized(path string, f func(w http.ResponseWriter, r *http.Request)) {
|
||||
|
||||
@@ -21,6 +21,7 @@ func NewFileStorage(path string) *FileSvgStorage {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
log.Println("Initialized file storage handler")
|
||||
return &FileSvgStorage{path}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user