From b125ba7b487f1b8c887efb5175af97e321a41cf9 Mon Sep 17 00:00:00 2001 From: Imri Paran Date: Mon, 22 Jul 2024 20:42:37 +0200 Subject: [PATCH] MINOR: changed log level to debug (#17126) * changed log level to debug * fixed type * changed type to optional --- .../src/metadata/profiler/orm/types/custom_hex_byte_string.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ingestion/src/metadata/profiler/orm/types/custom_hex_byte_string.py b/ingestion/src/metadata/profiler/orm/types/custom_hex_byte_string.py index 1e27adb3ce3..e87afd234e8 100644 --- a/ingestion/src/metadata/profiler/orm/types/custom_hex_byte_string.py +++ b/ingestion/src/metadata/profiler/orm/types/custom_hex_byte_string.py @@ -46,7 +46,7 @@ class HexByteString(TypeDecorator): f"HexByteString columns support only bytes values. Received {type(value).__name__}." ) - def process_result_value(self, value: str, dialect) -> Optional[str]: + def process_result_value(self, value: Optional[bytes], dialect) -> Optional[str]: """This is executed during result retrieval Args: @@ -66,8 +66,8 @@ class HexByteString(TypeDecorator): value = bytes_value.decode(encoding=detected_encoding) return value except Exception as exc: + logger.debug("Failed to parse bytes valud as string: %s", exc) logger.debug(traceback.format_exc()) - logger.error(exc) return value.hex()