1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Add option to log non-error output to stdout (#6243)

* nit

* Add option to log non-error output to stdout

- No change to default behaviour
- Adds CLI argument: --log-stdout
- With this arg present, any logging of a level below logging.ERROR will be sent to stdout instead of stderr
This commit is contained in:
filtered
2024-12-28 06:40:05 +11:00
committed by GitHub
parent 4b5bcd8ac4
commit 9cfd185676
3 changed files with 15 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ if __name__ == "__main__":
os.environ['DO_NOT_TRACK'] = '1'
setup_logger(log_level=args.verbose)
setup_logger(log_level=args.verbose, use_stdout=args.log_stdout)
def apply_custom_paths():
# extra model paths