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

Function _init_logging

generate.py:254–263  ·  view source on GitHub ↗
(rank)

Source from the content-addressed store, hash-verified

252
253
254def _init_logging(rank):
255 # logging
256 if rank == 0:
257 # set format
258 logging.basicConfig(
259 level=logging.INFO,
260 format="[%(asctime)s] %(levelname)s: %(message)s",
261 handlers=[logging.StreamHandler(stream=sys.stdout)])
262 else:
263 logging.basicConfig(level=logging.ERROR)
264
265
266def generate(args):

Callers 1

generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected