mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
RedisConnection: shorten log messages
This commit is contained in:
parent
cd44c5371a
commit
955b612703
1 changed files with 5 additions and 1 deletions
|
|
@ -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 a new issue