diff options
| author | tassaron | 2022-04-30 00:16:10 -0400 |
|---|---|---|
| committer | tassaron | 2022-04-30 00:16:10 -0400 |
| commit | 340062712cd88bd1467b40fd49892566bfbccc04 (patch) | |
| tree | bc41cdad7b8c05faf47c25a8c86c2e04bbb56c04 /src | |
| parent | 9610631f0299151b5e8cb0b77e2f00ca2084d1c4 (diff) | |
raise log level of library logfile
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core.py b/src/core.py index 0f7fe8e..77b0894 100644 --- a/src/core.py +++ b/src/core.py @@ -14,7 +14,8 @@ from . import toolkit log = logging.getLogger('AVP.Core') STDOUT_LOGLVL = logging.WARNING -FILE_LOGLVL = logging.ERROR +FILE_LIBLOGLVL = logging.WARNING +FILE_LOGLVL = logging.INFO class Core: @@ -465,7 +466,8 @@ class Core: # Locate FFmpeg ffmpegBin = findFfmpeg() - log.info("Detected FFmpeg bin: %s", ffmpegBin) + if not ffmpegBin: + print("Could not find FFmpeg") settings = { 'canceled': False, @@ -530,6 +532,7 @@ class Core: @classmethod def loadDefaultSettings(cls): + # settings that get saved into the ini file cls.defaultSettings = { "outputWidth": 1280, "outputHeight": 720, @@ -593,7 +596,7 @@ class Core: logFile = logging.FileHandler(logFilename, delay=True) logFile.setLevel(FILE_LOGLVL) libLogFile = logging.FileHandler(libLogFilename, delay=True) - libLogFile.setLevel(FILE_LOGLVL) + libLogFile.setLevel(FILE_LIBLOGLVL) fileFormatter = logging.Formatter( '[%(asctime)s] %(threadName)-10.10s %(name)-23.23s %(levelname)s: ' '%(message)s' |
