From d2d76baad80bf3c1882a46098ffe9ddbef42907c Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 7 Jul 2017 13:32:04 -0700 Subject: [PATCH] relay: more detailed logging when the spawn_* condition times out --- plugins/relay.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/relay.py b/plugins/relay.py index bb2e1ae..0019ae4 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -238,8 +238,10 @@ def spawn_relay_server(irc, remoteirc): return sid else: - log.debug('(%s) skipping spawn_relay_server(%s, %s); the remote is not ready yet', - irc.name, irc.name, remoteirc.name) + log.debug('(%s) skipping spawn_relay_server(%s, %s); the local server (%s) is not ready yet', + irc.name, irc.name, remoteirc.name, irc.name) + log.debug('(%s) spawn_relay_server: current thread is %s', + irc.name, threading.current_thread().name) def get_remote_sid(irc, remoteirc, spawn_if_missing=True): """Gets the remote server SID representing remoteirc on irc, spawning @@ -382,8 +384,10 @@ def get_remote_user(irc, remoteirc, user, spawn_if_missing=True, times_tagged=0) return u else: - log.debug('(%s) skipping spawn_relay_user(%s, %s, %s, ...); the remote is not ready yet', - irc.name, irc.name, remoteirc.name, user) + log.debug('(%s) skipping spawn_relay_user(%s, %s, %s, ...); the local server (%s) is not ready yet', + irc.name, irc.name, remoteirc.name, user, irc.name) + log.debug('(%s) spawn_relay_user: current thread is %s', + irc.name, threading.current_thread().name) def get_orig_user(irc, user, targetirc=None): """