Skip to content
Snippets Groups Projects
Commit 124523d7 authored by Eric Cano's avatar Eric Cano
Browse files

Logging: increased maximum size of parameters and stdout log lines.

parent f911308e
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ public:
*/
Param (const std::string &name, const double value) throw():
m_name(name) {
char buf[100];
char buf[1024];
std::snprintf(buf, sizeof(buf), "%f", value);
// Just in case we overflow
buf[sizeof(buf)-1]='\0';
......
......@@ -43,7 +43,7 @@ void StdoutLogger::prepareForFork() {}
// reducedSyslog
//------------------------------------------------------------------------------
void StdoutLogger::reducedSyslog(const std::string & msg) {
printf("%s", msg.substr(0,m_maxMsgLen).c_str());
printf("%s", msg.c_str());
}
} // namespace log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment