RedisConnection: shorten log messages

This commit is contained in:
Alexander A. Klimov 2019-12-17 11:49:54 +01:00
parent cd44c5371a
commit 955b612703

View File

@ -64,9 +64,13 @@ void LogQuery(RedisConnection::Query& query, Log& msg)
break; break;
} }
if (arg.GetLength() > 64) {
msg << " '" << arg.SubStr(0, 61) << "...'";
} else {
msg << " '" << arg << '\''; msg << " '" << arg << '\'';
} }
} }
}
void RedisConnection::FireAndForgetQuery(RedisConnection::Query query, RedisConnection::QueryPriority priority) void RedisConnection::FireAndForgetQuery(RedisConnection::Query query, RedisConnection::QueryPriority priority)
{ {