File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -633,6 +633,13 @@ def is_valid_file(arg):
633
633
help = "Flag for enabling rest API." ,
634
634
)
635
635
636
+ p .add_argument (
637
+ "--debug" ,
638
+ default = False ,
639
+ action = argparse .BooleanOptionalAction ,
640
+ help = "Flag for enabling debugging log in WebUI." ,
641
+ )
642
+
636
643
p .add_argument (
637
644
"--output_gallery" ,
638
645
default = True ,
Original file line number Diff line number Diff line change 1
1
from multiprocessing import Process , freeze_support
2
2
import os
3
3
import sys
4
+ import logging
4
5
5
6
if sys .platform == "darwin" :
6
7
# import before IREE to avoid torch-MLIR library issues
@@ -41,6 +42,8 @@ def launch_app(address):
41
42
42
43
43
44
if __name__ == "__main__" :
45
+ if args .debug :
46
+ logging .basicConfig (level = logging .DEBUG )
44
47
# required to do multiprocessing in a pyinstaller freeze
45
48
freeze_support ()
46
49
if args .api or "api" in args .ui .split ("," ):
You can’t perform that action at this time.
0 commit comments