log url timeouts
This commit is contained in:
parent
6126b5dfa2
commit
33e672c32b
2 changed files with 5 additions and 1 deletions
|
@ -142,6 +142,10 @@ class Node(Thread):
|
||||||
logger.debug('urllib2.URLError %s', e)
|
logger.debug('urllib2.URLError %s', e)
|
||||||
self.online = False
|
self.online = False
|
||||||
return None
|
return None
|
||||||
|
except socket.timeout:
|
||||||
|
logger.debug('timeout %s', url)
|
||||||
|
self.online = False
|
||||||
|
return None
|
||||||
except:
|
except:
|
||||||
logger.debug('unknown url error', exc_info=True)
|
logger.debug('unknown url error', exc_info=True)
|
||||||
self.online = False
|
self.online = False
|
||||||
|
|
|
@ -127,7 +127,7 @@ def getUsers(data):
|
||||||
users = []
|
users = []
|
||||||
ids = set()
|
ids = set()
|
||||||
local = set()
|
local = set()
|
||||||
for u in models.User.query.filter(models.User.id!=settings.USER_ID).all():
|
for u in models.User.query.filter(models.User.id != settings.USER_ID).all():
|
||||||
users.append(u.json())
|
users.append(u.json())
|
||||||
ids.add(u.id)
|
ids.add(u.id)
|
||||||
if state.nodes:
|
if state.nodes:
|
||||||
|
|
Loading…
Reference in a new issue