aboutsummaryrefslogtreecommitdiff
path: root/cmd-queue.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-03-05 17:17:59 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-03-05 17:17:59 +0000
commitf8c86a9515ae863fcbc38769544be983ce494a3c (patch)
tree4b81f3ef472fa190acf1cfc3f9a0ccfd41e49ae4 /cmd-queue.c
parent2c9cddd8760300af8d9ee6f80662f89e43a8f2ce (diff)
downloadrtmux-f8c86a9515ae863fcbc38769544be983ce494a3c.tar.gz
rtmux-f8c86a9515ae863fcbc38769544be983ce494a3c.tar.bz2
rtmux-f8c86a9515ae863fcbc38769544be983ce494a3c.zip
Add some additional debug logging.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index e5c84131..4b00fceb 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -183,6 +183,7 @@ cmdq_continue(struct cmd_q *cmdq)
struct cmd_q_item *next;
enum cmd_retval retval;
int guards, empty;
+ char s[1024];
guards = 0;
if (c != NULL && c->session != NULL)
@@ -204,6 +205,10 @@ cmdq_continue(struct cmd_q *cmdq)
next = TAILQ_NEXT(cmdq->item, qentry);
while (cmdq->cmd != NULL) {
+ cmd_print(cmdq->cmd, s, sizeof s);
+ log_debug("cmdq %p: %s (client %d)", cmdq, s,
+ cmdq->client != NULL ? cmdq->client->ibuf.fd : -1);
+
if (guards)
cmdq_print(cmdq, "%%begin");
retval = cmdq->cmd->entry->exec(cmdq->cmd, cmdq);