Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Conversation

@eduser25
Copy link
Contributor

New osmLogLevel option has been added under observability meshconfig
spec (seems the most related and relevant to the available categories)
to allow changing the log level of OSM at runtime.

The initial log level flag has been kept at it still mandates boot log
level up to the point configurator and the log level handler are both
up, which then meshconfig value takes over.

The handler can't be easilly moved to the logger package as it
introduces a hard dependency cycle between logger<->configurator, hence
the handler has been left on osm-controller main.

Adds a unit test, and see below a working example on a running deployment.

Fixes #3646

Signed-off-by: Eduard Serra [email protected]

-->
Affected area:

Functional Area
New Functionality [ ]
Documentation [ ]
Install [ ]
CLI Tool [ ]
Certificate Management [ ]
Control Plane [ ]
Ingress [ ]
Egress [ ]
Networking [ ]
Observability [ ]
SMI Policy [ ]
Sidecar Injection [ ]
Security [ ]
Upgrade [ ]
Tests [ ]
CI System [ ]
Demo [ ]
Performance [ ]
Other [ ]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project?

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change?

(Backport release-v0.9)

New `osmLogLevel` option has been added under observability meshconfig
spec (seems the most related and relevant to the available categories)
to allow changing the log level of OSM at runtime.

The initial log level flag has been kept at it still mandates boot log
level up to the point configurator and the log level handler are both
up, which then meshconfig value takes over.

The handler can't be easilly moved to the `logger` package as it
introduces a hard dependency cycle between logger<->configurator, hence
the handler has been left on osm-controller main.

Adds a unit test, and see below a working example on a running deployment.

Fixes openservicemesh#3646

Signed-off-by: Eduard Serra <[email protected]>
@eduser25 eduser25 requested a review from a team as a code owner June 23, 2021 23:25
@codecov-commenter
Copy link

Codecov Report

Merging #3655 (d6f0e67) into release-v0.9 (6075a33) will increase coverage by 0.12%.
The diff coverage is 67.64%.

Impacted file tree graph

@@               Coverage Diff                @@
##           release-v0.9    #3655      +/-   ##
================================================
+ Coverage         66.41%   66.54%   +0.12%     
================================================
  Files               168      169       +1     
  Lines              7912     7945      +33     
================================================
+ Hits               5255     5287      +32     
+ Misses             2626     2625       -1     
- Partials             31       33       +2     
Flag Coverage Δ
unittests 66.54% <67.64%> (+0.12%) ⬆️

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

Impacted Files Coverage Δ
pkg/configurator/mock_client_generated.go 0.00% <0.00%> (ø)
cmd/osm-controller/osm-controller.go 15.74% <50.00%> (-0.13%) ⬇️
cmd/osm-controller/log_handler.go 84.00% <84.00%> (ø)
pkg/configurator/methods.go 69.44% <100.00%> (+0.43%) ⬆️
pkg/configurator/client.go 84.48% <0.00%> (+8.62%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6075a33...d6f0e67. Read the comment docs.

@eduser25 eduser25 merged commit 3da6444 into openservicemesh:release-v0.9 Jun 24, 2021
@eduser25 eduser25 deleted the branch-log-port branch June 24, 2021 21:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants