From 4f3091beb2d671de1c4a1eed2221e5e241b91015 Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Thu, 23 Sep 2021 19:01:49 +0200 Subject: [PATCH] change logging --- demotape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demotape.py b/demotape.py index 9a76e57..c9bd707 100644 --- a/demotape.py +++ b/demotape.py @@ -16,7 +16,7 @@ import yaml from pathlib import Path import logging -logging.basicConfig(filename='demotape.log', level=logging.INFO) +logging.basicConfig(filename='/var/log/demotape.log', level=logging.INFO) logging.info("Starting demotape service at " + str(datetime.utcnow())) config_path = Path(__file__).parent / './config.yaml' @@ -96,7 +96,7 @@ def my_ytdl_hook(d): def download_stream(channel, dest_path): - logging.info('download_stream') + logging.info(timestamp() + ' download_stream') ytdl_opts = { 'logger': MyLogger(), 'outtmpl': dest_path,