Skip to content

Commit b126a46

Browse files
authored
logging.warn is deprecated, use warning (#1692)
1 parent 88ab83d commit b126a46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cwltool/job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ def docker_monitor(
900900
try:
901901
os.remove(cidfile)
902902
except OSError as exc:
903-
_logger.warn(
903+
_logger.warning(
904904
"Ignored error cleaning up Docker cidfile: %s", exc
905905
)
906906
return
@@ -923,7 +923,7 @@ def docker_monitor(
923923
process.wait()
924924
stats_proc.kill()
925925
except OSError as exc:
926-
_logger.warn("Ignored error with docker stats: %s", exc)
926+
_logger.warning("Ignored error with docker stats: %s", exc)
927927
return
928928
max_mem_percent = 0 # type: float
929929
mem_percent = 0 # type: float

cwltool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ def main(
11531153
tool = make_tool(uri, loadingContext)
11541154
except GraphTargetMissingException as main_missing_exc:
11551155
if args.validate:
1156-
logging.warn(
1156+
logging.warning(
11571157
"File contains $graph of multiple objects and no default "
11581158
"process (#main). Validating all objects:"
11591159
)

0 commit comments

Comments
 (0)