mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
RedisConnection: shorten log messages
This commit is contained in:
parent
cd44c5371a
commit
955b612703
@ -64,7 +64,11 @@ void LogQuery(RedisConnection::Query& query, Log& msg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg << " '" << arg << '\'';
|
if (arg.GetLength() > 64) {
|
||||||
|
msg << " '" << arg.SubStr(0, 61) << "...'";
|
||||||
|
} else {
|
||||||
|
msg << " '" << arg << '\'';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user