diff --git a/hsds/hsds_app.py b/hsds/hsds_app.py index 92cd7ada..e690b68d 100644 --- a/hsds/hsds_app.py +++ b/hsds/hsds_app.py @@ -36,7 +36,7 @@ def _enqueue_output(out, queue, loglevel): logging.debug("_enqueue_output close()") out.close() except ValueError as ve: - logging.warn(f"_enqueue_output - ValueError (handle closed?): {ve}") + logging.warning(f"_enqueue_output - ValueError (handle closed?): {ve}") except Exception as e: logging.error(f"_enqueue_output - Unexpected exception {type(e)}: {e}") @@ -216,7 +216,7 @@ def check_processes(self): if p.poll() is not None: result = p.communicate() msg = f"process {pname} ended, result: {result}" - self.log.warn(msg) + self.log.warning(msg) # TBD - restart failed process def run(self):