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