RedisConnection: shorten log messages

This commit is contained in:
Alexander A. Klimov 2019-12-17 11:49:54 +01:00
parent cd44c5371a
commit 955b612703
1 changed files with 5 additions and 1 deletions

View File

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