From ab87a38312f27a6cbd8ea44b56e0bff6ff254569 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 6 Jun 2025 14:39:28 +0200 Subject: behaviour: logging → logger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/behaviour.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/behaviour.py') diff --git a/lib/behaviour.py b/lib/behaviour.py index 638aa93..d243b26 100644 --- a/lib/behaviour.py +++ b/lib/behaviour.py @@ -74,7 +74,7 @@ class SDKBehaviourModel: flat_model = info(name, t_from).flatten() else: flat_model = list() - logging.warning( + logger.warning( f"Model for {name} {t_from} is {info(name, t_from)}, expected SplitFunction" ) @@ -148,7 +148,7 @@ class SDKBehaviourModel: if this in n_seen: if n_seen[this] == 1: - logging.debug( + logger.debug( f"Loop found in {annotation.start.name} {annotation.end.param}: {this} ⟳" ) n_seen[this] += 1 @@ -237,7 +237,7 @@ class SDKBehaviourModel: if this in n_seen: if n_seen[this] == 1: - logging.debug( + logger.debug( f"Loop found in {annotation.start.name} {annotation.end.param}: {this} ⟳" ) n_seen[this] += 1 @@ -350,7 +350,7 @@ class EventSequenceModel: param_list = utils.param_dict_to_list(param, ref_model.parameters) if not use_lut and not param_info(name, action).is_predictable(param_list): - logging.warning( + logger.warning( f"Cannot predict {name}.{action}({param}), falling back to static model" ) @@ -364,15 +364,15 @@ class EventSequenceModel: ) except KeyError: if use_lut: - logging.error( + logger.error( f"Cannot predict {name}.{action}({param}) from LUT model" ) else: - logging.error(f"Cannot predict {name}.{action}({param}) from model") + logger.error(f"Cannot predict {name}.{action}({param}) from model") raise except TypeError: if not use_lut: - logging.error(f"Cannot predict {name}.{action}({param}) from model") + logger.error(f"Cannot predict {name}.{action}({param}) from model") raise if aggregate == "sum": -- cgit v1.2.3