MCPcopy
hub / github.com/Wan-Video/Wan2.2 / _init_logging

Function _init_logging

generate.py:303–312  ·  view source on GitHub ↗
(rank)

Source from the content-addressed store, hash-verified

301
302
303def _init_logging(rank):
304 # logging
305 if rank == 0:
306 # set format
307 logging.basicConfig(
308 level=logging.INFO,
309 format="[%(asctime)s] %(levelname)s: %(message)s",
310 handlers=[logging.StreamHandler(stream=sys.stdout)])
311 else:
312 logging.basicConfig(level=logging.ERROR)
313
314
315def generate(args):

Callers 1

generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected