Commit 20be29f9 by Sheng

Use warning instead of warn

parent 08853996
......@@ -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
......
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment