Add a format for number of bytes writtent to client, useful for debugging.

This commit is contained in:
nicm
2017-04-18 15:44:17 +00:00
parent aace1ead1e
commit fb3c5efa50
4 changed files with 4 additions and 0 deletions

1
tty.c
View File

@ -427,6 +427,7 @@ tty_add(struct tty *tty, const char *buf, size_t len)
evbuffer_add(tty->out, buf, len);
log_debug("%s: %.*s", c->name, (int)len, (const char *)buf);
tty->written += len;
if (tty_log_fd != -1)
write(tty_log_fd, buf, len);