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