Skip to content

Commit e431d7f

Browse files
committed
make test server output more terse
1 parent b1ef9a5 commit e431d7f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/StackExchange.Redis.Tests/InProcessTestServer.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ public override TypedRedisValue Execute(RedisClient client, in RedisRequest requ
4040
}
4141
else if (result.IsAggregate)
4242
{
43-
Log($"[{client}] {request.Command} => {(char)type} ({type}, {result.Span.Length})");
43+
Log($"[{client}] {request.Command} => {(char)type}{result.Span.Length}");
4444
}
4545
else
4646
{
4747
try
4848
{
4949
var s = result.AsRedisValue().ToString() ?? "(null)";
50-
const int MAX_CHARS = 16;
50+
const int MAX_CHARS = 32;
5151
s = s.Length <= MAX_CHARS ? s : s.Substring(0, MAX_CHARS) + "...";
52-
Log($"[{client}] {request.Command} => {(char)type} ({type}) {s}");
52+
Log($"[{client}] {request.Command} => {(char)type}{s}");
5353
}
5454
catch
5555
{
56-
Log($"[{client}] {request.Command} => {(char)type} ({type})");
56+
Log($"[{client}] {request.Command} => {(char)type}");
5757
}
5858
}
5959
return result;
@@ -133,11 +133,11 @@ protected override void OnOutOfBand(RedisClient client, TypedRedisValue message)
133133
&& message.Span is { IsEmpty: false } span
134134
&& !span[0].IsAggregate)
135135
{
136-
_log?.WriteLine($"[{client}] => {(char)type} ({type}, {message.Span.Length}): {span[0].AsRedisValue()}");
136+
_log?.WriteLine($"[{client}] => {(char)type}{message.Span.Length} {span[0].AsRedisValue()}");
137137
}
138138
else
139139
{
140-
_log?.WriteLine($"[{client}] => {(char)type} ({type})");
140+
_log?.WriteLine($"[{client}] => {(char)type}");
141141
}
142142

143143
base.OnOutOfBand(client, message);

0 commit comments

Comments
 (0)