diff --git a/webssh/handler.py b/webssh/handler.py index 535fb4a..349f146 100644 --- a/webssh/handler.py +++ b/webssh/handler.py @@ -36,7 +36,7 @@ class MixinHandler(object): if ip: # does not validate ip and port here return (ip, port) - logging.warn('Bad nginx configuration.') + logging.warning('Bad nginx configuration.') return False diff --git a/webssh/worker.py b/webssh/worker.py index bf38dc6..ee0ad45 100644 --- a/webssh/worker.py +++ b/webssh/worker.py @@ -13,7 +13,7 @@ workers = {} def recycle_worker(worker): if worker.handler: return - logging.warn('Recycling worker {}'.format(worker.id)) + logging.warning('Recycling worker {}'.format(worker.id)) workers.pop(worker.id, None) worker.close(reason='worker recycled')