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)
|
||||
self.online = False
|
||||
return None
|
||||
except socket.timeout:
|
||||
logger.debug('timeout %s', url)
|
||||
self.online = False
|
||||
return None
|
||||
except:
|
||||
logger.debug('unknown url error', exc_info=True)
|
||||
self.online = False
|
||||
|
|
|
@ -127,7 +127,7 @@ def getUsers(data):
|
|||
users = []
|
||||
ids = 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())
|
||||
ids.add(u.id)
|
||||
if state.nodes:
|
||||
|
|
Loading…
Reference in a new issue