[mousetrap/gnome3-wip: 213/240] Fix logging broken by 73fd6cb1dea523f334a63516d73daa449d6fc99c.
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 213/240] Fix logging broken by 73fd6cb1dea523f334a63516d73daa449d6fc99c.
- Date: Mon, 8 Sep 2014 15:30:28 +0000 (UTC)
commit 67145ac6b97405e4dabc9e99bb048dfb84450102
Author: Stoney Jackson <dr stoney gmail com>
Date: Sun Jun 29 14:44:18 2014 -0400
Fix logging broken by 73fd6cb1dea523f334a63516d73daa449d6fc99c.
It's important to delay importing of any part of the system until
after logging is configured.
src/mousetrap/main.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mousetrap/main.py b/src/mousetrap/main.py
index 722c33f..0c8c1df 100644
--- a/src/mousetrap/main.py
+++ b/src/mousetrap/main.py
@@ -8,7 +8,6 @@ import sys
import yaml
from mousetrap.config import Config
-from mousetrap.core import App
class Main(object):
@@ -47,6 +46,7 @@ class Main(object):
logger.debug(yaml.dump(dict(self._config), default_flow_style=False))
def run(self):
+ from mousetrap.core import App
App(self._config).run()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]