From 58711aaaeccb497b233e7333993f2fb25b4da383 Mon Sep 17 00:00:00 2001 From: Hidekazu Nakamura Date: Tue, 7 Feb 2017 17:48:56 +0900 Subject: [PATCH] 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 --- watcher/decision_engine/audit/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/decision_engine/audit/base.py b/watcher/decision_engine/audit/base.py index ec827c4a9..0b298d504 100644 --- a/watcher/decision_engine/audit/base.py +++ b/watcher/decision_engine/audit/base.py @@ -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: