Revert "Logger: only log printable characters and newlines"

This reverts commit 2b1392af2f.
This seems to create issues shutting down, so I need to look into it
further.
This commit is contained in:
William Hubbs 2018-05-10 19:35:24 -05:00
parent 2b1392af2f
commit b35e03b6b1

View File

@ -87,9 +87,8 @@ write_log(int logfd, const char *buffer, size_t bytes)
}
if (!in_escape) {
if (isprint((unsigned char) *p) || *p == '\n')
if (write(logfd, p++, 1) == -1)
eerror("write: %s", strerror(errno));
if (write(logfd, p++, 1) == -1)
eerror("write: %s", strerror(errno));
continue;
}