log url timeouts

This commit is contained in:
j 2016-07-04 15:36:50 +05:30
parent 6126b5dfa2
commit 33e672c32b
2 changed files with 5 additions and 1 deletions

View file

@ -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