From 8da8cbadf71057349a40c54012e6da06aac4ecbc Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Tue, 25 Sep 2018 13:23:49 -0300 Subject: [PATCH] retira logging remanescente --- sapl/compilacao/apps.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sapl/compilacao/apps.py b/sapl/compilacao/apps.py index f20336fba..fae56b631 100644 --- a/sapl/compilacao/apps.py +++ b/sapl/compilacao/apps.py @@ -6,8 +6,6 @@ from django.db.utils import DEFAULT_DB_ALIAS, IntegrityError from django.utils.translation import string_concat from django.utils.translation import ugettext_lazy as _ -from sapl.settings import BASE_DIR - class AppConfig(apps.AppConfig): name = 'sapl.compilacao' @@ -74,10 +72,9 @@ class AppConfig(apps.AppConfig): tipo.save() except IntegrityError as e: if not settings.DEBUG: - logger.error( - string_concat( - _('Ocorreu erro na criação tipo de ta: '), - str(e))) + print(string_concat( + _('Ocorreu erro na criação tipo de ta: '), + str(e))) def init_compilacao_base(app_config, verbosity=2, interactive=True,