Skip to content

Commit a06c9ee

Browse files
nit: removing else
1 parent 4568777 commit a06c9ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

application_sdk/observability/logger_adaptor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,13 @@ def __init__(self, logger_name: str) -> None:
292292
"{time:YYYY-MM-DD HH:mm:ss} [{level}] {extra[logger_name]} - {message}"
293293
)
294294

295+
colorize = False
296+
format_str = atlan_format_str_plain
297+
295298
# Colorize the logs only if the log level is DEBUG
296299
if LOG_LEVEL == "DEBUG":
297300
colorize = True
298301
format_str = atlan_format_str_color
299-
else:
300-
colorize = False
301-
format_str = atlan_format_str_plain
302302

303303
self.logger.add(
304304
sys.stderr,

0 commit comments

Comments
 (0)