Set the progress and message callbacks by default

Also bump verbosity to 2 as a starting point - this is
development right now.
This commit is contained in:
Joerg Wunsch
2024-03-19 23:07:23 +01:00
parent 5fd5cffdda
commit fa78ea3a34

View File

@@ -188,3 +188,8 @@ def progress_callback(percent: int, etime: float, hdr: str, finish: int):
print(f"{prog_hdr} {percent:3d} %", end='\r', file=sys.stderr, flush=True)
if (percent == 100):
print("", file=sys.stderr)
ad.set_msg_callback(msg_callback)
ad.set_progress_callback(progress_callback)
ad.cvar.verbose=2