mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-21 22:23:05 +00:00
aop.ipc: Use print as default logger
Signed-off-by: Eileen Yoon <eyn@gmx.com>
This commit is contained in:
parent
33c4591ff3
commit
0ebc339761
1 changed files with 1 additions and 3 deletions
|
@ -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)})")
|
||||
|
|
Loading…
Reference in a new issue