logging: Log management commands that are run.

This could potentially help with debugging exactly what happened with
some issue down the line.

(imported from commit cc7321d742875b644d4727a084b462dcd01dcf10)
This commit is contained in:
Tim Abbott
2013-11-18 18:04:45 -05:00
parent 2955cac47e
commit 6c7489ed88
4 changed files with 33 additions and 2 deletions

View File

@@ -587,6 +587,7 @@ CACHES = {
if DEPLOYED:
SERVER_LOG_PATH = "/var/log/zulip/server.log"
MANAGEMENT_LOG_PATH = "/var/log/zulip/manage.log"
WORKER_LOG_PATH = "/var/log/zulip/workers.log"
if ENTERPRISE:
EVENT_LOG_DIR = None
@@ -601,6 +602,7 @@ if DEPLOYED:
else:
EVENT_LOG_DIR = 'event_log'
SERVER_LOG_PATH = "server.log"
MANAGEMENT_LOG_PATH = "manage.log"
WORKER_LOG_PATH = "workers.log"
STATS_DIR = 'stats'
PERSISTENT_QUEUE_FILENAME = "event_queues.pickle"
@@ -683,6 +685,11 @@ LOGGING = {
'level': 'INFO',
'propagate': False,
},
'zulip.management': {
'handlers': ['file'],
'level': 'INFO',
'propagate': False,
},
## Uncomment the following to get all database queries logged to the console
# 'django.db': {
# 'handlers': ['console'],