Add operatornotify to YCDL flask dev.
This commit is contained in:
parent
6068d644b9
commit
69924b0b13
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ import gevent.pywsgi
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from voussoirkit import operatornotify
|
||||||
from voussoirkit import pathclass
|
from voussoirkit import pathclass
|
||||||
from voussoirkit import vlogging
|
from voussoirkit import vlogging
|
||||||
|
|
||||||
|
@ -87,6 +88,7 @@ def ycdl_flask_launch_argparse(args):
|
||||||
use_https=args.use_https,
|
use_https=args.use_https,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@operatornotify.main_decorator(subject='YCDL', notify_every_line=True)
|
||||||
def main(argv):
|
def main(argv):
|
||||||
global LOG_LEVEL
|
global LOG_LEVEL
|
||||||
(LOG_LEVEL, argv) = vlogging.get_level_by_argv(argv)
|
(LOG_LEVEL, argv) = vlogging.get_level_by_argv(argv)
|
||||||
|
|
Loading…
Reference in a new issue