From 52e3d5bed50c403ce2afcfdb56bf560ea0ee9ea6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 25 Sep 2013 14:18:32 -0400 Subject: [PATCH] Write zephyr mirroring logs to /var/log/zulip rather than ~/. (imported from commit 7b76fa7834fb82fe3967f9e5ef963f26b7ff7184) --- bots/check-mirroring | 2 +- bots/zephyr_mirror_backend.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bots/check-mirroring b/bots/check-mirroring index 2adb16e..8ee85df 100755 --- a/bots/check-mirroring +++ b/bots/check-mirroring @@ -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) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index 140d52b..8d71f06 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -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)