diff --git a/module_build_service/scheduler/handlers/modules.py b/module_build_service/scheduler/handlers/modules.py index 28254db3..76edf335 100644 --- a/module_build_service/scheduler/handlers/modules.py +++ b/module_build_service/scheduler/handlers/modules.py @@ -157,6 +157,7 @@ def init(config, session, msg): build.transition(conf, models.BUILD_STATES["wait"]) # Catch custom exceptions that we can expose to the user except (UnprocessableEntity, Forbidden, ValidationError, RuntimeError) as e: + log.exception(str(e)) # Rollback changes underway session.rollback() build.transition(conf, models.BUILD_STATES["failed"], state_reason=str(e))