Skip to content

Commit

Permalink
fix: added logger.error(e) to diagnoss issues pertaining to failed ml…
Browse files Browse the repository at this point in the history
…flow inits
  • Loading branch information
Syakyr committed Sep 11, 2024
1 parent 6e6e507 commit fa0b0ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ def mlflow_init(args, run_name='train-model', setup_mlflow=False, autolog=False)
init_success = True
logger.info("MLflow initialisation has succeeded.")
logger.info("UUID for MLflow run: %s", mlflow_run.info.run_id)
except Exception:
except Exception as e:
logger.error("MLflow initialisation has failed.")
logger.error(e)

return init_success, mlflow_run

Expand Down

0 comments on commit fa0b0ab

Please sign in to comment.