mirror of https://github.com/zulip/zulip.git
Write zephyr mirroring logs to /var/log/zulip rather than ~/.
(imported from commit 7b76fa7834fb82fe3967f9e5ef963f26b7ff7184)
This commit is contained in:
parent
4be5d81af1
commit
2fab8ab8f5
|
@ -47,7 +47,7 @@ zulip_client = zulip.Client(
|
|||
site=options.site)
|
||||
|
||||
# Configure logging
|
||||
log_file = os.path.join(options.root_path, "logs", "check-mirroring-log")
|
||||
log_file = "/var/log/zulip/check-mirroring-log"
|
||||
log_format = "%(asctime)s: %(message)s"
|
||||
logging.basicConfig(format=log_format)
|
||||
|
||||
|
|
|
@ -903,9 +903,9 @@ def open_logger():
|
|||
log_file = options.log_path
|
||||
elif options.forward_class_messages:
|
||||
if options.test_mode:
|
||||
log_file = "/home/humbug/test-mirror-log"
|
||||
log_file = "/var/log/zulip/test-mirror-log"
|
||||
else:
|
||||
log_file = "/home/humbug/mirror-log"
|
||||
log_file = "/var/log/zulip/mirror-log"
|
||||
else:
|
||||
f = tempfile.NamedTemporaryFile(prefix="zulip-log.%s." % (options.user,),
|
||||
delete=False)
|
||||
|
|
Loading…
Reference in New Issue