Add operatornotify to YCDL flask dev.

This commit is contained in:
voussoir 2021-09-05 01:27:02 -07:00
parent 6068d644b9
commit 69924b0b13
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -17,6 +17,7 @@ import gevent.pywsgi
import os
import sys
from voussoirkit import operatornotify
from voussoirkit import pathclass
from voussoirkit import vlogging
@ -87,6 +88,7 @@ def ycdl_flask_launch_argparse(args):
use_https=args.use_https,
)
@operatornotify.main_decorator(subject='YCDL', notify_every_line=True)
def main(argv):
global LOG_LEVEL
(LOG_LEVEL, argv) = vlogging.get_level_by_argv(argv)