Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kdudkov committed Mar 19, 2023
1 parent caf8481 commit 1737c3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/goatak_server/marti_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func getMissionUploadHandler(app *App) func(req *air.Request, res *air.Response)
if f, fh, err := req.HTTPRequest().FormFile("assetfile"); err == nil {
n, err := app.packageManager.SaveFile(hash, fh.Filename, f)
if err != nil {
app.Logger.Errorf("%v", err)
return err
}

Expand All @@ -154,6 +155,7 @@ func getMissionUploadHandler(app *App) func(req *air.Request, res *air.Response)
app.Logger.Infof("save packege %s %s", fname, hash)
return res.WriteString(fmt.Sprintf("/Marti/api/sync/metadata/%s/tool", hash))
} else {
app.Logger.Errorf("%v", err)
return err
}
}
Expand Down

0 comments on commit 1737c3f

Please sign in to comment.