Skip to content

Commit c4cf820

Browse files
committed
log.warn -> log.warning
- A warning was raised that we used the wrong method to warn.
1 parent 325aab9 commit c4cf820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

batchspawner/batchspawner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ async def start(self):
373373
if self.state_ispending():
374374
self.log.debug('Job ' + self.job_id + ' still pending')
375375
else:
376-
self.log.warn('Job ' + self.job_id + ' neither pending nor running.\n' +
376+
self.log.warning('Job ' + self.job_id + ' neither pending nor running.\n' +
377377
self.job_status)
378378
raise RuntimeError('The Jupyter batch job has disappeared'
379379
' while pending in the queue or died immediately'
@@ -415,7 +415,7 @@ async def stop(self, now=False):
415415
return
416416
await gen.sleep(1.0)
417417
if self.job_id:
418-
self.log.warn("Notebook server job {0} at {1}:{2} possibly failed to terminate".format(
418+
self.log.warning("Notebook server job {0} at {1}:{2} possibly failed to terminate".format(
419419
self.job_id, self.ip, self.port)
420420
)
421421

0 commit comments

Comments
 (0)