From 046ebe426b54d9ca6a050f1b84d3ffd72274f265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Mon, 9 May 2016 17:54:06 +0300 Subject: [PATCH] log fixed --- opt/ahenk/base/task/TaskManager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opt/ahenk/base/task/TaskManager.py b/opt/ahenk/base/task/TaskManager.py index c2638bb..62601c0 100644 --- a/opt/ahenk/base/task/TaskManager.py +++ b/opt/ahenk/base/task/TaskManager.py @@ -1,9 +1,8 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- # Author: İsmail BAŞARAN -from base.model.MessageFactory import MessageFactory - from base.Scope import Scope +from base.model.MessageFactory import MessageFactory from base.model.enum.MessageType import MessageType @@ -38,7 +37,7 @@ class TaskManager(object): try: self.pluginManager.processPolicy(policy) except Exception as e: - self.logger.error("Exception occured when adding policy ") + self.logger.error("Exception occured when adding policy. Error Message: {}".format(str(e))) pass def saveTask(self, task):