summaryrefslogtreecommitdiff
path: root/src/plugin_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin_manager.py')
-rw-r--r--src/plugin_manager.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugin_manager.py b/src/plugin_manager.py
index f414bb66..feae8aeb 100644
--- a/src/plugin_manager.py
+++ b/src/plugin_manager.py
@@ -2,9 +2,12 @@ import imp
import os
import sys
import tabs
+import logging
from config import config
from gettext import gettext as _
+log = logging.getLogger(__name__)
+
plugins_dir = config.get('plugins_dir', '')
plugins_dir = plugins_dir or\
os.path.join(os.environ.get('XDG_DATA_HOME') or\
@@ -56,7 +59,8 @@ class PluginManager(object):
imp.release_lock()
except Exception as e:
import traceback
- self.core.information(_("Could not load plugin: ") + traceback.format_exc(), 'Error')
+ log.debug("Could not load plugin: \n%s", traceback.format_exc())
+ self.core.information("Could not load plugin: %s" % e, 'Error')
return
finally:
if imp.lock_held():