mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7716 from Icinga/bugfix/redisconnection-long-logs
RedisConnection: shorten log messages
This commit is contained in:
commit
cbbff6b37d
|
@ -70,8 +70,12 @@ void LogQuery(RedisConnection::Query& query, Log& msg)
|
|||
break;
|
||||
}
|
||||
|
||||
if (arg.GetLength() > 64) {
|
||||
msg << " '" << arg.SubStr(0, 61) << "...'";
|
||||
} else {
|
||||
msg << " '" << arg << '\'';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue