Use warning instead of warn
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ class MixinHandler(object):
|
|||||||
if ip: # does not validate ip and port here
|
if ip: # does not validate ip and port here
|
||||||
return (ip, port)
|
return (ip, port)
|
||||||
|
|
||||||
logging.warn('Bad nginx configuration.')
|
logging.warning('Bad nginx configuration.')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ workers = {}
|
|||||||
def recycle_worker(worker):
|
def recycle_worker(worker):
|
||||||
if worker.handler:
|
if worker.handler:
|
||||||
return
|
return
|
||||||
logging.warn('Recycling worker {}'.format(worker.id))
|
logging.warning('Recycling worker {}'.format(worker.id))
|
||||||
workers.pop(worker.id, None)
|
workers.pop(worker.id, None)
|
||||||
worker.close(reason='worker recycled')
|
worker.close(reason='worker recycled')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user