diff src/cagou.py @ 6:85649eca9f9b

core (logs): integrate Kivy logs with SàT: - forbid kivy to handle its own logs - added log_kivy_level option which can be put in sat.conf in [cagou] section. This option can have the following values: - follow [default]: follow SàT cagou level - kivy: follow level set in kivy own configuration - [log_level]: set this log level only for kivy messages
author Goffi <goffi@goffi.org>
date Thu, 07 Jul 2016 09:39:21 +0200
parents 160cc95ad7ea
children 7b0a53d2afd3
line wrap: on
line diff
--- a/src/cagou.py	Thu Jul 07 09:39:21 2016 +0200
+++ b/src/cagou.py	Thu Jul 07 09:39:21 2016 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr//bin/env python2
 # -*- coding: utf-8 -*-
 
 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client
@@ -18,9 +18,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-from sat_frontends.primitivus.constants import Const as C
-from sat.core import log_config
-log_config.satConfigure(C.LOG_BACKEND_STANDARD, C)
+import logging_setter
+logging_setter.set_logging()
+from constants import Const as C
 from sat.core import log as logging
 log = logging.getLogger(__name__)
 from sat_frontends.quick_frontend.quick_app import QuickApp