Skip to content

Commit

Permalink
log all model upload errors
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Jan 30, 2025
1 parent 2e0f556 commit ee32709
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fedn/network/api/v1/model_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,7 @@ def upload_model():
model = helper.load(object)
control.commit(model_id=None, model=model, name=name)
except Exception as e:
logger.error("Error occured during model loading")
logger.debug(e)
logger.error(f"An unexpected error occurred: {e}")
status_code = 400
return (
jsonify(
Expand Down

0 comments on commit ee32709

Please sign in to comment.