mirror of https://github.com/zulip/zulip.git
Update logging path for email-mirror.
(imported from commit 75f36dbb963b2b77ecda7ba138023f0f774047e0)
This commit is contained in:
parent
0a4a53211c
commit
e4496521e9
|
@ -46,12 +46,11 @@ PORT = 993
|
|||
|
||||
## Setup ##
|
||||
|
||||
log_file = "/var/log/humbug/email-mirror.log"
|
||||
log_format = "%(asctime)s: %(message)s"
|
||||
logging.basicConfig(format=log_format)
|
||||
|
||||
formatter = logging.Formatter(log_format)
|
||||
file_handler = logging.FileHandler(log_file)
|
||||
file_handler = logging.FileHandler(settings.EMAIL_LOG_PATH)
|
||||
file_handler.setFormatter(formatter)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -452,12 +452,14 @@ if DEPLOYED:
|
|||
ERROR_LOG_DIR = '/home/humbug/logs/errors'
|
||||
STATS_DIR = '/home/humbug/stats'
|
||||
PERSISTENT_QUEUE_FILENAME = "/home/humbug/tornado/event_queues.pickle"
|
||||
EMAIL_LOG_PATH = "/var/log/zulip/email-mirror.log"
|
||||
else:
|
||||
EVENT_LOG_DIR = 'event_log'
|
||||
SERVER_LOG_PATH = "server.log"
|
||||
ERROR_LOG_DIR = 'errors'
|
||||
STATS_DIR = 'stats'
|
||||
PERSISTENT_QUEUE_FILENAME = "event_queues.pickle"
|
||||
EMAIL_LOG_PATH = "email-mirror.log"
|
||||
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
|
|
Loading…
Reference in New Issue