Remove emojis from logging statements
This commit is contained in:
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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:
|
||||
|
@ -1 +1 @@
|
||||
__version__ = "0.1.36"
|
||||
__version__ = "0.1.37"
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user