Including space in the list of readable characters for debuglog

This commit is contained in:
Felipe Zimmerle 2015-09-16 14:25:03 -03:00
parent 7a468a8fbe
commit e88d2120fb

View File

@ -1011,7 +1011,7 @@ std::string toHexIfNeeded(const std::string &str) {
for (int i = 0; i < str.size(); i++) {
int c = str.at(i);
if (c < 33 || c > 126) {
if (c < 32 || c > 126) {
res << "\\x" << std::setw(2) << std::setfill('0') << std::hex << c;
} else {
res << str.at(i);