Skip to content

Commit db53bd6

Browse files
authored
Merge pull request #404 from dhchen/Log_string
Concatenate log into one string and sending to std::cerr instead of multiple << operator
2 parents 03f2e26 + c2b8a60 commit db53bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/crow/logging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace crow
6060
prefix = "CRITICAL";
6161
break;
6262
}
63-
std::cerr << "(" << timestamp() << ") [" << prefix << "] " << message << std::endl;
63+
std::cerr << std::string("(") + timestamp() + std::string(") [") + prefix + std::string("] ") + message << std::endl;
6464
}
6565

6666
private:

0 commit comments

Comments
 (0)