From 7e880f485ff5ddbd9bd4f91f5c4cc2962640baa7 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Mon, 24 Sep 2018 09:15:31 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20corrige=20erro=20de=20atualiza=C3=A7?= =?UTF-8?q?=C3=A3o=20de=20dict?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/settings.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/sapl/settings.py b/sapl/settings.py index aa17fe3b7..af5264896 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -234,7 +234,8 @@ LANGUAGES = ( TIME_ZONE = config('TZ', default='America/Sao_Paulo') if not TIME_ZONE: - raise ValueError('TIMEZONE env variable undefined in .env settings file! Leaving...') + raise ValueError( + 'TIMEZONE env variable undefined in .env settings file! Leaving...') USE_I18N = True USE_L10N = True @@ -305,15 +306,13 @@ if DEBUG and LOGGING_CONSOLE: # Descomentar linha abaixo fará com que logs aparecam, inclusive SQL # LOGGING['handlers']['console']['level'] = 'DEBUG' LOGGING['loggers']['django']['level'] = 'DEBUG' - LOGGING.update({ - 'formatters': { - 'verbose': { - 'format': '%(levelname)s %(asctime)s %(pathname)s ' - '%(funcName)s %(message)s' - }, - 'simple': { - 'format': '%(levelname)s %(message)s' - }, + LOGGING['formatters'].update({ + 'verbose': { + 'format': '%(levelname)s %(asctime)s %(pathname)s ' + '%(funcName)s %(message)s' + }, + 'simple': { + 'format': '%(levelname)s %(message)s' }, }) LOGGING['handlers']['console']['formatter'] = 'verbose'