logger提出

This commit is contained in:
Jerry Yan 2022-07-04 11:07:25 +08:00
parent 9bf7cffed2
commit 8b87e28bef
2 changed files with 8 additions and 8 deletions

View File

@ -0,0 +1,7 @@
import logging
LOGGER = logging.getLogger("WORKFLOW")
_ch = logging.StreamHandler()
_ch.setLevel(logging.DEBUG)
LOGGER.setLevel(logging.DEBUG)
LOGGER.addHandler(_ch)

View File

@ -1,18 +1,11 @@
import os
import subprocess
import logging
from datetime import datetime, timedelta
from typing import IO
from config import FFMPEG_EXEC, FFMPEG_USE_HEVC, VIDEO_BITRATE, FFMPEG_USE_NVIDIA_GPU, VIDEO_CLIP_EACH_SEC, VIDEO_CLIP_OVERFLOW_SEC, \
FFMPEG_USE_INTEL_GPU, VIDEO_OUTPUT_DIR, VIDEO_CRF
LOGGER = logging.getLogger("VIDEO")
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
LOGGER.setLevel(logging.DEBUG)
LOGGER.addHandler(ch)
from . import LOGGER
def base_ts_to_filename(start_ts: float, is_mp4=False) -> str: