Tweak some logging.

This commit is contained in:
nicm
2017-06-16 15:12:38 +00:00
parent d685604d04
commit a67df17763
2 changed files with 14 additions and 4 deletions

View File

@ -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)) {