summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd-find.c14
-rw-r--r--cmd-queue.c2
2 files changed, 13 insertions, 3 deletions
diff --git a/cmd-find.c b/cmd-find.c
index a74ccaee..7736dcf3 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -950,7 +950,7 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
struct mouse_event *m;
struct cmd_find_state current;
char *colon, *period, *copy = NULL;
- const char *session, *window, *pane;
+ const char *session, *window, *pane, *s;
int window_only = 0, pane_only = 0;
/* Can fail flag implies quiet. */
@@ -958,10 +958,18 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
flags |= CMD_FIND_QUIET;
/* Log the arguments. */
+ if (type == CMD_FIND_PANE)
+ s = "pane";
+ else if (type == CMD_FIND_WINDOW)
+ s = "window";
+ else if (type == CMD_FIND_SESSION)
+ s = "session";
+ else
+ s = "unknown";
if (target == NULL)
- log_debug("%s: target none, type %d", __func__, type);
+ log_debug("%s: target none, type %s", __func__, s);
else
- log_debug("%s: target %s, type %d", __func__, target, type);
+ log_debug("%s: target %s, type %s", __func__, target, s);
log_debug("%s: item %p, flags %#x", __func__, item, flags);
/* Clear new state. */
diff --git a/cmd-queue.c b/cmd-queue.c
index 8d89e990..db802339 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -453,6 +453,8 @@ cmdq_error(struct cmdq_item *item, const char *fmt, ...)
msglen = xvasprintf(&msg, fmt, ap);
va_end(ap);
+ log_debug("%s: %s", __func__, msg);
+
if (c == NULL)
cfg_add_cause("%s:%u: %s", cmd->file, cmd->line, msg);
else if (c->session == NULL || (c->flags & CLIENT_CONTROL)) {