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

Fix: log level and color level should be configurable via the env #1314

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

natalieparellano
Copy link
Member

@natalieparellano natalieparellano commented Mar 8, 2024

Summary

Currently, log level and color level are only configurable via flags (-log-level and -no-color).

This broke awhile back in an effort to consolidate some logic in the platform package.

Release notes

Log level and color level are configurable via the environment (in addition to flags)


Context

Screenshot 2024-03-08 at 12 09 19 PM

@natalieparellano natalieparellano force-pushed the fix/env-log-color branch 2 times, most recently from 54305a4 to cca3341 Compare March 8, 2024 17:02
@natalieparellano natalieparellano changed the title WIP Fix: log level and color level should be configurable via the env Mar 8, 2024
Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Natalie Arellano <narellano@vmware.com>
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.60%. Comparing base (3a05fde) to head (0d7a27c).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1314      +/-   ##
==========================================
+ Coverage   64.60%   64.60%   +0.01%     
==========================================
  Files         101      101              
  Lines        7007     7008       +1     
==========================================
+ Hits         4526     4527       +1     
  Misses       2069     2069              
  Partials      412      412              
Flag Coverage Δ
os_linux 64.08% <100.00%> (+0.01%) ⬆️
os_windows 56.68% <100.00%> (+0.01%) ⬆️
unit 64.08% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano marked this pull request as ready for review March 12, 2024 13:42
@natalieparellano natalieparellano requested a review from a team as a code owner March 12, 2024 13:42
@natalieparellano natalieparellano merged commit 435d226 into main Mar 12, 2024
10 checks passed
@natalieparellano natalieparellano deleted the fix/env-log-color branch March 12, 2024 15:39
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.

2 participants