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
|
||||||
|
|
Loading…
Reference in a new issue