From c6216d67b5ded02af742c317d410465398dac929 Mon Sep 17 00:00:00 2001 From: Kamal Curi Date: Mon, 25 Sep 2023 18:31:28 -0300 Subject: [PATCH] REM: Logger config --- settings/config.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/settings/config.py b/settings/config.py index cfcb9d1..82a059a 100644 --- a/settings/config.py +++ b/settings/config.py @@ -37,45 +37,6 @@ QUOTE_STACK = os.environ.get('NEEBLE_STACK_FILE', '/opt/neeble/id.list') # Define the path for the --rq leaderboard file RQ_LEADERBOARD = os.environ.get('RQ_LEADERBOARD_FILE', '/opt/neeble/rqlb.list') -# Logging custom config. -LOGGING_CONFIG = { - 'version': 1, - 'disable_existing_loggers': False, - 'formatters': { - 'default': { - 'format': '[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s', - }, - }, - 'handlers': { - 'console': { - 'level': LOGLEVEL, - 'class': 'logging.StreamHandler', - 'formatter': 'default', - }, - 'logfile': { - 'level': LOGLEVEL, - 'class': 'logging.handlers.RotatingFileHandler', - 'filename': '/tmp/neeble.log', - 'maxBytes': 50000, - 'backupCount': 9, - 'formatter': 'default', - }, - }, - 'loggers': { - '': { - 'level': LOGLEVEL, - 'handlers': ['console', 'logfile'], - 'propagate': False, - }, - 'neeble': { - 'level': LOGLEVEL, - 'handlers': ['console', 'logfile'], - 'propagate': False, - }, - }, -} -logger.dictConfig(LOGGING_CONFIG) - ## INSTRUCTIONS ON SETTING UP PERMISSIONS: # Permissions are now granular, more than one distinct role # can execute the commands, whatever roles are inside the