Skip to content

Commit

Permalink
More descriptive info in logging obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
mburysek committed Aug 13, 2024
1 parent 4cf9d8d commit 2dc90e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asab/api/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ async def get_advertised_instances(self) -> typing.List[typing.Dict]:
Returns a list of dictionaries. Each dictionary represents an advertised instance
obtained by iterating over the items in the `/run` path in ZooKeeper.
"""
LogObsolete.warning("This method is obsolete. Use `discover()` method instead.")
LogObsolete.warning("The method 'get_advertised_instances()' in DiscoveryService is obsolete. Use `discover()` method instead.")
advertised = []
async for item, item_data in self._iter_zk_items():
item_data['ephemeral_id'] = item
Expand Down

0 comments on commit 2dc90e4

Please sign in to comment.