mirror of https://github.com/Icinga/icinga2.git
RedisConnection: shorten log messages
This commit is contained in:
parent
cd44c5371a
commit
955b612703
|
@ -64,7 +64,11 @@ void LogQuery(RedisConnection::Query& query, Log& msg)
|
|||
break;
|
||||
}
|
||||
|
||||
msg << " '" << arg << '\'';
|
||||
if (arg.GetLength() > 64) {
|
||||
msg << " '" << arg.SubStr(0, 61) << "...'";
|
||||
} else {
|
||||
msg << " '" << arg << '\'';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue