mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user