High Score logging output
Bug/Issue Description: Run with --quiet ... still get "event %d high score" output ...
Run with -verbosity error ... still get "event %d high score" output ...
Run with both ... same result ... should be able to suppress this output ...
Required Information:
Provide a full copy of the command line options you are using, and add --verbosity debug, for example:
dvr-scan -i fullDay.mkv --logfile dvrlog.txt -m copy -q -so -df 3 -tb 6s -l 5 -tp 4s -t .17 -fs 2
dvr-scan -i fullDay.mkv --logfile dvrlog.txt -m copy -v error -so -df 3 -tb 6s -l 5 -tp 4s -t .17 -fs 2
Results in journal filling up with:
Apr 11 16:52:12 ip-10-0-38-132 motion.sh[397966]: event 1 high score 250.981315 Apr 11 16:52:12 ip-10-0-38-132 motion.sh[397966]: event 1 high score 250.981315 Apr 11 16:52:16 ip-10-0-38-132 motion.sh[397966]: event 1 high score 250.981315 Apr 11 16:52:17 ip-10-0-38-132 motion.sh[397962]: event 1 high score 250.938151 Apr 11 16:52:19 ip-10-0-38-132 motion.sh[397964]: event 1 high score 251.411849 Apr 11 16:52:20 ip-10-0-38-132 motion.sh[397966]: event 1 high score 250.981315
Expected Behavior: Expected that --quiet or -verbosity error would suppress these info messages
Computing Environment:
- OS: Ubuntu 24
- Python Version: 3.12.2
- OpenCV Version: Using FFMPEG mode ... 7.1.1
Additional Information:
Reviewed the python code and can see these events are constrained to log.debug ... so confused why this output isn't suppressed with the settings above ...
Thanks for letting me know, I might remove that log line entirely since we now save debug logs by default (that's probably more of a trace-level thing). I overhauled logging in v1.7 so I might have overlooked something in the process. I did have some issues with log filters interacting with the progress bar too.
Do you have a user config file setup or anything? I'll see if I can repro this on my end sometime this weekend.
Could you also provide the result of running dvr-scan --version?
Hey Brandon,
Thanks. Here you go:
DVR-Scan 1.7
Copyright (C) 2025 Brandon Castellano < https://www.dvr-scan.com >
System Info
OS: Linux-6.8.0-1026-aws-x86_64-with-glibc2.39 Python: CPython 3.12.3 Arch: 64bit + ELF
Packages
av Not Installed cv2 4.11.0 dvr_scan 1.7 moviepy Not Installed numpy 2.1.3 platformdirs 4.3.6 PIL 11.0.0 scenedetect 0.6.5 screeninfo Not Installed tqdm 4.67.1
Features
ffmpeg 7.1.1 tkinter Installed
Thanks for this project. I just downloaded the source and re-built it with lines for Event Score commented out. Still a bug but I have a workaround.