From 56d38b9a38ccc7fbe17cdcb2debb71e04f518c8b Mon Sep 17 00:00:00 2001 From: Harel Shein Date: Fri, 25 Aug 2023 14:24:06 -0400 Subject: [PATCH] update cosmos log color to purple (#494) ## Description The previous color was the same as error messages and confusing to read the logs. Updating to purple. ## Related Issue(s) ## Breaking Change? no, purely cosmetic. ## Checklist - [ ] I have made corresponding changes to the documentation (if required) - [ ] I have added tests that prove my fix is effective or that my feature works --- cosmos/log.py | 2 +- tests/test_log.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmos/log.py b/cosmos/log.py index 53b7892de..256da2fa0 100644 --- a/cosmos/log.py +++ b/cosmos/log.py @@ -8,7 +8,7 @@ "[%(blue)s%(asctime)s%(reset)s] " "{%(blue)s%(filename)s:%(reset)s%(lineno)d} " "%(log_color)s%(levelname)s%(reset)s - " - "%(yellow)s(astronomer-cosmos)%(reset)s - " + "%(purple)s(astronomer-cosmos)%(reset)s - " "%(log_color)s%(message)s%(reset)s" ) diff --git a/tests/test_log.py b/tests/test_log.py index 5f7717e85..38d7e1b94 100644 --- a/tests/test_log.py +++ b/tests/test_log.py @@ -4,7 +4,7 @@ def test_get_logger(): - custom_string = "%(yellow)s(astronomer-cosmos)%(reset)s" + custom_string = "%(purple)s(astronomer-cosmos)%(reset)s" standard_logger = logging.getLogger() assert custom_string not in standard_logger.handlers[0].formatter._fmt