Closed tulinkry closed 5 years ago
I see the same warning in IDEA.
Technically, this is not a problem since the worker()
will only use logdir
if batch
is true and __main__()
has this:
# Log messages to dedicated log file if running in batch mode.
if args.batch:
logdir = config.get(LOGDIR_PROPERTY)
if not logdir:
fatal("The {} property is required in batch mode".
format(LOGDIR_PROPERTY))
It should be sufficient to initialize logdir
to None
.