Repository navigation
Stdlib: use default color for info log level - #8766
Merged
Merged
Conversation
To make it working with light theme, as well.
sholderbach
reviewed
Apr 6, 2023
Comment on lines
+40
to
+46
| export def example [] { | ||
| log debug "Debug message" | ||
| log info "Info message" | ||
| log warning "Warning message" | ||
| log error "Error message" | ||
| log critical "Critical message" | ||
| } No newline at end of file |
Member
There was a problem hiding this comment.
Do we want to keep this around in the tests?
Contributor
Author
There was a problem hiding this comment.
Why not? This is the third time I had to add these calls to test logs. I think it is a good idea to have both automated (test_* commands) and manual tests (aka examples). But if you want, I can remove it, and type them again if I want to check how the log messages appear in my terminal.
Member
There was a problem hiding this comment.
Yeah sounds good. Sometimes it is good to have something around for manual inspection (the actually useful printer test page). As long as we don't cause confusion in the main namespace I am happy.
Contributor
|
Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To make it work with a light theme, as well. The dark theme is not affected, since the default color is white there.
Before
After
Also, I added back the example command to the test script which is very useful in these cases...