From 0ebc3397615e7e6a1d4e0c82e75b9ed6daa40985 Mon Sep 17 00:00:00 2001 From: Eileen Yoon Date: Tue, 30 Jan 2024 09:55:33 +0900 Subject: [PATCH] aop.ipc: Use print as default logger Signed-off-by: Eileen Yoon --- proxyclient/m1n1/fw/aop/ipc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proxyclient/m1n1/fw/aop/ipc.py b/proxyclient/m1n1/fw/aop/ipc.py index 75a714b1..e7ac9c1d 100644 --- a/proxyclient/m1n1/fw/aop/ipc.py +++ b/proxyclient/m1n1/fw/aop/ipc.py @@ -44,9 +44,7 @@ class EPICCall: def from_stream(cls, f): return cls(cls.ARGS.parse_stream(f)) - def dump(self, logger=None): - if logger is None: - logger = print + def dump(self, logger=print): args_fmt = [f"{k}={v}" for (k, v) in self.args.items() if k != "_io"] rets_fmt = [f"{k}={v}" for (k, v) in self.rets.items() if k != "_io"] logger(f"{type(self).__name__}({', '.join(args_fmt)}) -> ({', '.join(rets_fmt)})")