@@ -154,8 +154,8 @@ def __init__(self, topology_settings: TopologySettings):
154
154
_SDAM_LOGGER ,
155
155
message = _SDAMStatusMessage .TOPOLOGY_CHANGE ,
156
156
topologyId = self ._topology_id ,
157
- previousDescription = initial_td . __repr__ ( ),
158
- newDescription = self ._description . __repr__ ( ),
157
+ previousDescription = repr ( initial_td ),
158
+ newDescription = repr ( self ._description ),
159
159
)
160
160
161
161
for seed in topology_settings .seeds :
@@ -514,8 +514,8 @@ async def _process_change(
514
514
_SDAM_LOGGER ,
515
515
message = _SDAMStatusMessage .TOPOLOGY_CHANGE ,
516
516
topologyId = self ._topology_id ,
517
- previousDescription = td_old . __repr__ ( ),
518
- newDescription = self ._description . __repr__ ( ),
517
+ previousDescription = repr ( td_old ),
518
+ newDescription = repr ( self ._description ),
519
519
)
520
520
521
521
# Shutdown SRV polling for unsupported cluster types.
@@ -581,8 +581,8 @@ async def _process_srv_update(self, seedlist: list[tuple[str, Any]]) -> None:
581
581
_SDAM_LOGGER ,
582
582
message = _SDAMStatusMessage .TOPOLOGY_CHANGE ,
583
583
topologyId = self ._topology_id ,
584
- previousDescription = td_old . __repr__ ( ),
585
- newDescription = self ._description . __repr__ ( ),
584
+ previousDescription = repr ( td_old ),
585
+ newDescription = repr ( self ._description ),
586
586
)
587
587
588
588
async def on_srv_update (self , seedlist : list [tuple [str , Any ]]) -> None :
@@ -747,8 +747,8 @@ async def close(self) -> None:
747
747
_SDAM_LOGGER ,
748
748
message = _SDAMStatusMessage .TOPOLOGY_CHANGE ,
749
749
topologyId = self ._topology_id ,
750
- previousDescription = old_td . __repr__ ( ),
751
- newDescription = self ._description . __repr__ ( ),
750
+ previousDescription = repr ( old_td ),
751
+ newDescription = repr ( self ._description ),
752
752
)
753
753
_debug_log (
754
754
_SDAM_LOGGER , message = _SDAMStatusMessage .STOP_TOPOLOGY , topologyId = self ._topology_id
0 commit comments