From aa33995ec21fb458b413c3beb41a25affac8867b Mon Sep 17 00:00:00 2001 From: Pedro Crespo-Valero <32402063+pcrespov@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:41:16 +0200 Subject: [PATCH] cleanup --- packages/service-library/src/servicelib/logging_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/service-library/src/servicelib/logging_utils.py b/packages/service-library/src/servicelib/logging_utils.py index df2179fe84a..235418fd950 100644 --- a/packages/service-library/src/servicelib/logging_utils.py +++ b/packages/service-library/src/servicelib/logging_utils.py @@ -346,10 +346,6 @@ def get_log_record_extra( return extra or None -def _un_capitalize(s: str) -> str: - return s[:1].lower() + s[1:] if s else "" - - def create_troubleshotting_log_message( message_to_user: str, error: BaseException, @@ -379,6 +375,10 @@ def create_troubleshotting_log_message( return f"{message_to_user}.\n{debug_data}" +def _un_capitalize(s: str) -> str: + return s[:1].lower() + s[1:] if s else "" + + @contextmanager def log_context( logger: logging.Logger,