From dcc21a1b8e1f9826e53729294439807ee6cc6ab1 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 30 Dec 2019 21:07:42 +0100 Subject: More verbose result info client method logging --- jfr_playoff/data/info.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/data/info.py b/jfr_playoff/data/info.py index e152b6c..9004322 100644 --- a/jfr_playoff/data/info.py +++ b/jfr_playoff/data/info.py @@ -58,14 +58,16 @@ class ResultInfo(object): try: ret = getattr(client, method)(*args) PlayoffLogger.get('resultinfo').info( - '%s method returned %s', method, ret) + '%s.%s method returned %s', + client.__class__.__name__, method, ret) return ret except Exception as e: if type(e) \ in client.get_exceptions(method) + (NotImplementedError,): PlayoffLogger.get('resultinfo').warning( - '%s method raised %s(%s)', - method, type(e).__name__, str(e)) + '%s.%s method raised %s(%s)', + client.__class__.__name__, method, + type(e).__name__, str(e)) else: raise PlayoffLogger.get('resultinfo').info( -- cgit v1.2.3