logger提出
This commit is contained in:
parent
9bf7cffed2
commit
8b87e28bef
@ -0,0 +1,7 @@
|
||||
import logging
|
||||
|
||||
LOGGER = logging.getLogger("WORKFLOW")
|
||||
_ch = logging.StreamHandler()
|
||||
_ch.setLevel(logging.DEBUG)
|
||||
LOGGER.setLevel(logging.DEBUG)
|
||||
LOGGER.addHandler(_ch)
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user