webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit 20be29f9892c938fc6558ab3cec4614a28b7bde1
parent 08853996ba25c25e2abccd13e8728fab0729897c
Author: Sheng <webmaster0115@gmail.com>
Date:   Fri, 27 Apr 2018 08:50:21 +0800

Use warning instead of warn

Diffstat:
Mwebssh/handler.py | 2+-
Mwebssh/worker.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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')