瀏覽代碼

change logging

master
Andreas Demmelbauer 3 年之前
父節點
當前提交
4f3091beb2
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      demotape.py

+ 2
- 2
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,


Loading…
取消
儲存