From 30190f373a1469acfc4dd0b8b350567d1839ca5f Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 21 Jun 2021 02:14:25 +0200 Subject: [PATCH] send /received output to self.output --- CommonClient.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index de17302c..a2058688 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -47,12 +47,9 @@ class ClientCommandProcessor(CommandProcessor): def _cmd_received(self) -> bool: """List all received items""" - logger.info('Received items:') + logger.info(f'{len(self.ctx.items_received)} received items:') for index, item in enumerate(self.ctx.items_received, 1): - logging.info('%s from %s (%s) (%d/%d in list)' % ( - color(self.ctx.item_name_getter(item.item), 'red', 'bold'), - color(self.ctx.player_names[item.player], 'yellow'), - self.ctx.location_name_getter(item.location), index, len(self.ctx.items_received))) + self.output(f"{self.ctx.item_name_getter(item.item)} from {self.ctx.player_names[item.player]}") return True def _cmd_missing(self) -> bool: