Skip to content

Commit 1411fc0

Browse files
DmitryLukyanovvincentkam
authored andcommitted
CSHARP-2548: Add LastUpdateTimestamp to ToString().
CSHARP-2548: Refactoring according to code review.
1 parent 262f933 commit 1411fc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MongoDB.Driver.Core/Core/Servers/ServerDescription.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ public override string ToString()
459459
.AppendFormatIf(_state == ServerState.Connected, ", WireVersionRange: \"{0}\"", _wireVersionRange)
460460
.AppendFormatIf(_electionId != null, ", ElectionId: \"{0}\"", _electionId)
461461
.AppendFormatIf(_heartbeatException != null, ", HeartbeatException: \"{0}\"", _heartbeatException)
462+
.AppendFormat(", LastUpdateTimestamp: \"{0:yyyy-MM-ddTHH:mm:ss.fffffffK}\"", _lastUpdateTimestamp)
462463
.Append(" }")
463464
.ToString();
464465
}

0 commit comments

Comments
 (0)