DEBUG log IRCBot.connect failure stacktrace
This commit is contained in:
parent
7d4c6b6941
commit
226ebe1f1f
2 changed files with 2 additions and 1 deletions
2
bitbotd
2
bitbotd
|
@ -157,7 +157,7 @@ if len(server_configs):
|
|||
|
||||
for server in servers:
|
||||
if not bot.connect(server):
|
||||
log.error("Failed to connect to '%s'" % str(server))
|
||||
log.error("Failed to connect to '%s'", [str(server)], exc_info=True)
|
||||
if not args.startup_disconnects:
|
||||
sys.exit(3)
|
||||
|
||||
|
|
|
@ -203,6 +203,7 @@ class Bot(object):
|
|||
except Exception as e:
|
||||
self.log.warn("Failed to connect to %s: %s",
|
||||
[str(server), str(e)])
|
||||
self.log.debug("Connection failure reason:", exc_info=True)
|
||||
return False
|
||||
self.servers[server.fileno()] = server
|
||||
self._read_poll.register(server.fileno(), select.POLLIN)
|
||||
|
|
Loading…
Reference in a new issue