diff --git a/exec/ircd.js b/exec/ircd.js
index 87a0a8c6f1ce8d7363a69e3d86596bd945ef3c1e..bb684f96ae6692f09fdc225f0abdf36dbeb44829 100644
--- a/exec/ircd.js
+++ b/exec/ircd.js
@@ -3008,7 +3008,9 @@ function IRCClient_check_queues() {
 	while (this.recvq.queue.length) {
 		cmd = this.recvq.del();
 		Global_CommandLine = cmd;
+log(LOG_DEBUG, "CMD: "+cmd);
 		this.work(cmd);
+log(LOG_DEBUG, "Replaced with? "+(this.replaced_with !== undefined));
 		if (this.replaced_with !== undefined)
 			this.replaced_with.check_queues();
 	}