Remove emojis from logging statements

This commit is contained in:
2025-05-24 17:53:34 -04:00
parent 4f3632bc6b
commit 429b434566
5 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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):

View File

@ -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:

View File

@ -1 +1 @@
__version__ = "0.1.36"
__version__ = "0.1.37"

View File

@ -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 <roland@rtj.dev>"]
license = "MIT"