From 4410ecf62c4206d2ea4432e16bb7b01fbb32aeb9 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 1 Feb 2024 08:19:38 +1100 Subject: [PATCH] fix(stats): log errors at error level They were erroneously at warning before. --- .../services/invocation_stats/invocation_stats_default.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/app/services/invocation_stats/invocation_stats_default.py b/invokeai/app/services/invocation_stats/invocation_stats_default.py index b7b221f411..7f3ef3023d 100644 --- a/invokeai/app/services/invocation_stats/invocation_stats_default.py +++ b/invokeai/app/services/invocation_stats/invocation_stats_default.py @@ -106,7 +106,7 @@ class InvocationStatsService(InvocationStatsServiceBase): del self._cache_stats[graph_execution_state_id] except KeyError as e: msg = f"Attempted to clear statistics for unknown graph {graph_execution_state_id}: {e}." - logger.warning(msg) + logger.error(msg) raise GESStatsNotFoundError(msg) from e def get_stats(self, graph_execution_state_id: str) -> InvocationStatsSummary: @@ -136,7 +136,7 @@ class InvocationStatsService(InvocationStatsServiceBase): cache_stats = self._cache_stats[graph_execution_state_id] except KeyError as e: msg = f"Attempted to get model cache statistics for unknown graph {graph_execution_state_id}: {e}." - logger.warning(msg) + logger.error(msg) raise GESStatsNotFoundError(msg) from e return ModelCacheStatsSummary( @@ -154,7 +154,7 @@ class InvocationStatsService(InvocationStatsServiceBase): graph_stats = self._stats[graph_execution_state_id] except KeyError as e: msg = f"Attempted to get graph statistics for unknown graph {graph_execution_state_id}: {e}." - logger.warning(msg) + logger.error(msg) raise GESStatsNotFoundError(msg) from e return graph_stats.get_graph_stats_summary(graph_execution_state_id) @@ -164,7 +164,7 @@ class InvocationStatsService(InvocationStatsServiceBase): graph_stats = self._stats[graph_execution_state_id] except KeyError as e: msg = f"Attempted to get node statistics for unknown graph {graph_execution_state_id}: {e}." - logger.warning(msg) + logger.error(msg) raise GESStatsNotFoundError(msg) from e return graph_stats.get_node_stats_summaries()