comparison 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
comparison
equal deleted inserted replaced
5:33b619506832 6:85649eca9f9b
1 #!/usr/bin/python 1 #!/usr//bin/env python2
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client 4 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client
5 # Copyright (C) 2016 Jérôme Poisson (goffi@goffi.org) 5 # Copyright (C) 2016 Jérôme Poisson (goffi@goffi.org)
6 6
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 20
21 from sat_frontends.primitivus.constants import Const as C 21 import logging_setter
22 from sat.core import log_config 22 logging_setter.set_logging()
23 log_config.satConfigure(C.LOG_BACKEND_STANDARD, C) 23 from constants import Const as C
24 from sat.core import log as logging 24 from sat.core import log as logging
25 log = logging.getLogger(__name__) 25 log = logging.getLogger(__name__)
26 from sat_frontends.quick_frontend.quick_app import QuickApp 26 from sat_frontends.quick_frontend.quick_app import QuickApp
27 from sat_frontends.bridge.DBus import DBusBridgeFrontend 27 from sat_frontends.bridge.DBus import DBusBridgeFrontend
28 # from sat_frontends.quick_frontend import quick_utils 28 # from sat_frontends.quick_frontend import quick_utils