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 return result
except BackSignal: except BackSignal:
logger.debug("[%s][BackSignal] Returning to previous menu", self.name) logger.debug("[%s][BackSignal] <- Returning to previous menu", self.name)
return None return None
except QuitSignal: except QuitSignal:
logger.debug("[%s][QuitSignal] Exiting application", self.name) logger.debug("[%s][QuitSignal] <- Exiting application", self.name)
raise raise
except Exception as error: except Exception as error:
context.exception = error context.exception = error

View File

@ -10,7 +10,7 @@ def log_before(context: ExecutionContext):
args = ", ".join(map(repr, context.args)) args = ", ".join(map(repr, context.args))
kwargs = ", ".join(f"{k}={v!r}" for k, v in context.kwargs.items()) kwargs = ", ".join(f"{k}={v!r}" for k, v in context.kwargs.items())
signature = ", ".join(filter(None, [args, kwargs])) 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): def log_success(context: ExecutionContext):
@ -18,7 +18,7 @@ def log_success(context: ExecutionContext):
result_str = repr(context.result) result_str = repr(context.result)
if len(result_str) > 100: if len(result_str) > 100:
result_str = f"{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): def log_after(context: ExecutionContext):

View File

@ -994,12 +994,12 @@ class Falyx:
logger.info("EOF or KeyboardInterrupt. Exiting menu.") logger.info("EOF or KeyboardInterrupt. Exiting menu.")
break break
except QuitSignal: except QuitSignal:
logger.info("QuitSignal received. Exiting menu.") logger.info("[QuitSignal]. <- Exiting menu.")
break break
except BackSignal: except BackSignal:
logger.info("BackSignal received.") logger.info("[BackSignal]. <- Returning to the menu.")
except CancelSignal: except CancelSignal:
logger.info("CancelSignal received.") logger.info("[CancelSignal]. <- Returning to the menu.")
finally: finally:
logger.info("Exiting menu: %s", self.get_title()) logger.info("Exiting menu: %s", self.get_title())
if self.exit_message: if self.exit_message:

View File

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

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "falyx" name = "falyx"
version = "0.1.36" version = "0.1.37"
description = "Reliable and introspectable async CLI action framework." description = "Reliable and introspectable async CLI action framework."
authors = ["Roland Thomas Jr <roland@rtj.dev>"] authors = ["Roland Thomas Jr <roland@rtj.dev>"]
license = "MIT" license = "MIT"