Skip to content

Commit

Permalink
[API] Remove duplicated logs and add messages (#671)
Browse files Browse the repository at this point in the history
(cherry picked from commit 46679f1)
  • Loading branch information
Hedingber committed Jan 22, 2021
1 parent dc6cd7a commit a11e421
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mlrun/api/api/endpoints/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def store_artifact(
except ValueError:
log_and_raise(HTTPStatus.BAD_REQUEST.value, reason="bad JSON body")

logger.debug(data)
logger.debug("Storing artifact", data=data)
await run_in_threadpool(
get_db().store_artifact,
db_session,
Expand Down
6 changes: 2 additions & 4 deletions mlrun/api/api/endpoints/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ async def store_run(
except ValueError:
log_and_raise(HTTPStatus.BAD_REQUEST.value, reason="bad JSON body")

logger.debug(data)
logger.info("Storing run", data=data)
await run_in_threadpool(
get_db().store_run, db_session, data, uid, project, iter=iter
)
logger.info("store run: {}".format(data))
return {}


Expand All @@ -51,11 +50,10 @@ async def update_run(
except ValueError:
log_and_raise(HTTPStatus.BAD_REQUEST.value, reason="bad JSON body")

logger.debug(data)
logger.info("Updating run", data=data)
await run_in_threadpool(
get_db().update_run, db_session, data, uid, project, iter=iter
)
logger.info("update run: {}".format(data))
return {}


Expand Down

0 comments on commit a11e421

Please sign in to comment.