From 429b43456670d1da3f563296873e59f6fbf8c537 Mon Sep 17 00:00:00 2001 From: Roland Thomas Date: Sat, 24 May 2025 17:53:34 -0400 Subject: [PATCH] Remove emojis from logging statements --- falyx/action/menu_action.py | 4 ++-- falyx/debug.py | 4 ++-- falyx/falyx.py | 6 +++--- falyx/version.py | 2 +- pyproject.toml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/falyx/action/menu_action.py b/falyx/action/menu_action.py index d8e4d85..a4fd83b 100644 --- a/falyx/action/menu_action.py +++ b/falyx/action/menu_action.py @@ -124,10 +124,10 @@ class MenuAction(BaseAction): return result except BackSignal: - logger.debug("[%s][BackSignal] ← Returning to previous menu", self.name) + logger.debug("[%s][BackSignal] <- Returning to previous menu", self.name) return None except QuitSignal: - logger.debug("[%s][QuitSignal] ← Exiting application", self.name) + logger.debug("[%s][QuitSignal] <- Exiting application", self.name) raise except Exception as error: context.exception = error diff --git a/falyx/debug.py b/falyx/debug.py index 5e597a8..554bbf6 100644 --- a/falyx/debug.py +++ b/falyx/debug.py @@ -10,7 +10,7 @@ def log_before(context: ExecutionContext): args = ", ".join(map(repr, context.args)) kwargs = ", ".join(f"{k}={v!r}" for k, v in context.kwargs.items()) signature = ", ".join(filter(None, [args, kwargs])) - logger.info("[%s] Starting → %s(%s)", context.name, context.action, signature) + logger.info("[%s] Starting -> %s(%s)", context.name, context.action, signature) def log_success(context: ExecutionContext): @@ -18,7 +18,7 @@ def log_success(context: ExecutionContext): result_str = repr(context.result) if len(result_str) > 100: result_str = f"{result_str[:100]} ..." - logger.debug("[%s] Success → Result: %s", context.name, result_str) + logger.debug("[%s] Success -> Result: %s", context.name, result_str) def log_after(context: ExecutionContext): diff --git a/falyx/falyx.py b/falyx/falyx.py index fb89a67..0753206 100644 --- a/falyx/falyx.py +++ b/falyx/falyx.py @@ -994,12 +994,12 @@ class Falyx: logger.info("EOF or KeyboardInterrupt. Exiting menu.") break except QuitSignal: - logger.info("QuitSignal received. Exiting menu.") + logger.info("[QuitSignal]. <- Exiting menu.") break except BackSignal: - logger.info("BackSignal received.") + logger.info("[BackSignal]. <- Returning to the menu.") except CancelSignal: - logger.info("CancelSignal received.") + logger.info("[CancelSignal]. <- Returning to the menu.") finally: logger.info("Exiting menu: %s", self.get_title()) if self.exit_message: diff --git a/falyx/version.py b/falyx/version.py index 8577c83..654464d 100644 --- a/falyx/version.py +++ b/falyx/version.py @@ -1 +1 @@ -__version__ = "0.1.36" +__version__ = "0.1.37" diff --git a/pyproject.toml b/pyproject.toml index d27828b..2f5e719 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "falyx" -version = "0.1.36" +version = "0.1.37" description = "Reliable and introspectable async CLI action framework." authors = ["Roland Thomas Jr "] license = "MIT"