Commit 71426b0b authored by Nick Craver's avatar Nick Craver

Moar logging!

parent adee4c80
......@@ -287,8 +287,8 @@ public async Task TestQuit()
SetExpectedAmbientFailureCount(1);
using (var muxer = Create(allowAdmin: true))
{
muxer.ConnectionFailed += (_, __) => Log("{0}: Connection Failed", Time());
muxer.ConnectionRestored += (_, __) => Log("{0}: Connection Restored", Time());
muxer.ConnectionFailed += (_, args) => Log("{0}: Connection Failed: {1}", Time(), args.ToString());
muxer.ConnectionRestored += (_, args) => Log("{0}: Connection Restored: {1}", Time(), args.ToString());
var db = muxer.GetDatabase();
string key = Guid.NewGuid().ToString();
......
......@@ -55,5 +55,10 @@ bool ICompletable.TryComplete(bool isAsync)
{
return ConnectionMultiplexer.TryCompleteHandler(handler, sender, this, isAsync);
}
/// <summary>
/// Returns the physical name of the connection.
/// </summary>
public override string ToString() => _physicalName ?? base.ToString();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment