Icinga DB: only log queries at debug level

This commit is contained in:
Julian Brost 2021-11-12 15:41:17 +01:00
parent 4e79eb080c
commit b9e6273ba0
1 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ void LogQuery(RedisConnection::Query& query, Log& msg)
void RedisConnection::FireAndForgetQuery(RedisConnection::Query query, RedisConnection::QueryPriority priority)
{
{
Log msg (LogNotice, "IcingaDB", "Firing and forgetting query:");
Log msg (LogDebug, "IcingaDB", "Firing and forgetting query:");
LogQuery(query, msg);
}
@ -138,7 +138,7 @@ void RedisConnection::FireAndForgetQuery(RedisConnection::Query query, RedisConn
void RedisConnection::FireAndForgetQueries(RedisConnection::Queries queries, RedisConnection::QueryPriority priority)
{
for (auto& query : queries) {
Log msg (LogNotice, "IcingaDB", "Firing and forgetting query:");
Log msg (LogDebug, "IcingaDB", "Firing and forgetting query:");
LogQuery(query, msg);
}
@ -162,7 +162,7 @@ void RedisConnection::FireAndForgetQueries(RedisConnection::Queries queries, Red
RedisConnection::Reply RedisConnection::GetResultOfQuery(RedisConnection::Query query, RedisConnection::QueryPriority priority)
{
{
Log msg (LogNotice, "IcingaDB", "Executing query:");
Log msg (LogDebug, "IcingaDB", "Executing query:");
LogQuery(query, msg);
}
@ -192,7 +192,7 @@ RedisConnection::Reply RedisConnection::GetResultOfQuery(RedisConnection::Query
RedisConnection::Replies RedisConnection::GetResultsOfQueries(RedisConnection::Queries queries, RedisConnection::QueryPriority priority)
{
for (auto& query : queries) {
Log msg (LogNotice, "IcingaDB", "Executing query:");
Log msg (LogDebug, "IcingaDB", "Executing query:");
LogQuery(query, msg);
}