Skip to content

Commit

Permalink
suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Schmidt committed Oct 30, 2023
1 parent f0db428 commit 5340a9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/live_cluster/collectinfo_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,11 +829,14 @@ async def _get_aerospike_conf(self, key, id):
complete_filename = as_logfile_prefix + id + "_aerospike.conf"
line = f"-o {complete_filename} with {key}"
await GenerateConfigController().execute(line.split())


level = self.logger.getEffectiveLevel()
self.logger.setLevel(logging.ERROR)
results = await asyncio.gather(
*[_get_aerospike_conf(self, node.key, node.node_id) for node in nodes],
return_exceptions=True,
)
self.logger.setLevel(level)

for result in results:
if isinstance(result, Exception):
Expand Down

0 comments on commit 5340a9a

Please sign in to comment.