Merge pull request #7716 from Icinga/bugfix/redisconnection-long-logs

RedisConnection: shorten log messages
This commit is contained in:
Michael Friedrich 2019-12-18 13:31:51 +01:00 committed by GitHub
commit cbbff6b37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ void LogQuery(RedisConnection::Query& query, Log& msg)
break;
}
msg << " '" << arg << '\'';
if (arg.GetLength() > 64) {
msg << " '" << arg.SubStr(0, 61) << "...'";
} else {
msg << " '" << arg << '\'';
}
}
}