""" Module that manage the Django APP MG.Authenticate """ import logging from django.apps import AppConfig class AuthConfig(AppConfig): """ Class that control the django app named MG.Authenticate """ name = 'MG.authenticate' def ready(self): # Logging conf # ## Disabling drive_server log log_django = logging.getLogger('django.server') def filter_mont_info(record): if isinstance(record.args[0], str) and \ ('/MG/authenticate/drive_server' in record.args[0] or '/MG/authenticate/drive_actions' in record.args[0] or '/MG/authenticate/dropbox_server' in record.args[0]): return False return True log_django.addFilter(filter_mont_info)