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,9 +70,13 @@ void LogQuery(RedisConnection::Query& query, Log& msg)
break;
}
if (arg.GetLength() > 64) {
msg << " '" << arg.SubStr(0, 61) << "...'";
} else {
msg << " '" << arg << '\'';
}
}
}
/**
* Queue a Redis query for sending