Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat Default CQ-Editor Log Output to Reduce Character Width #361

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jdegenstein
Copy link
Contributor

Added a variable with a new format string to reduce the character width of logging output for better compatibility with smaller screens. Here is a comparison of the old and new format:

image

Here is a comparison of the default format versus the new format:

default_format_string = '[{record.time:%Y-%m-%d %H:%M:%S.%f%z}] {record.level_name}: {record.channel}: {record.message}'
new_format_string = '[{record.time:%H:%M:%S.%f%z}] {record.level_name}: {record.message}'

@codecov
Copy link

codecov bot commented Aug 4, 2022

Codecov Report

Merging #361 (6503365) into master (774c3c6) will increase coverage by 0.00%.
The diff coverage is 66.66%.

❗ Current head 6503365 differs from pull request most recent head 0abdfbc. Consider uploading reports for the commit 0abdfbc to get more accurate results

@@           Coverage Diff           @@
##           master     #361   +/-   ##
=======================================
  Coverage   88.66%   88.67%           
=======================================
  Files          19       19           
  Lines        1500     1501    +1     
  Branches      205      205           
=======================================
+ Hits         1330     1331    +1     
  Misses        137      137           
  Partials       33       33           
Impacted Files Coverage Δ
cq_editor/widgets/log.py 95.83% <66.66%> (+0.18%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant