Skip to content

Commit

Permalink
update cosmos log color to purple (#494)
Browse files Browse the repository at this point in the history
## Description

The previous color was the same as error messages and confusing to read
the logs. Updating to purple.

## Related Issue(s)

<!-- If this PR closes an issue, you can use a keyword to auto-close.
-->
<!-- i.e. "closes #0000" -->

## 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
  • Loading branch information
Harel Shein authored Aug 25, 2023
1 parent 308eccd commit 56d38b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cosmos/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 56d38b9

Please sign in to comment.