Fix log level error to warning

When action plan is currently running, new action plan is set as
SUPERSEDED and error log reported. This patch changes log level
from error to warning.

Change-Id: I931218843d8f09340bd5363256164807d514446b
Closes-Bug: #1662450
(cherry picked from commit 58711aaaec)
This commit is contained in:
Hidekazu Nakamura
2017-02-07 17:48:56 +09:00
parent e1131a65d8
commit 095ca0ffb2

View File

@@ -129,7 +129,7 @@ class AuditHandler(BaseAuditHandler):
solution = self.do_execute(audit, request_context)
self.post_execute(audit, solution, request_context)
except exception.ActionPlanIsOngoing as e:
LOG.exception(e)
LOG.warning(e)
if audit.audit_type == objects.audit.AuditType.ONESHOT.value:
self.update_audit_state(audit, objects.audit.State.CANCELLED)
except Exception as e: