Fix up location of log file

This commit is contained in:
Brian Read 2025-03-16 08:48:05 +00:00
parent d3905a0e89
commit 1793812809

View File

@ -73,7 +73,7 @@ def extract_changelog_top(koji_link, host_header):
ROCKET_CHAT_URL = "https://chat.koozali.org/hooks/66d24441effca216c2ca309f/KJLaNwc5vyHwqz5MhRDpBkKWnQuAfsCX3xZMHxPhpuqmFgBn"
# Set up logging
log_file = "Koji2Rocket.log"
log_file = "/var/log/Koji2Rocket.log"
logging.basicConfig(filename=log_file, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
os.makedirs(os.path.dirname(log_file), exist_ok=True)
@ -174,4 +174,4 @@ def main():
time.sleep(60)
if __name__ == "__main__":
main()
main()