-
Notifications
You must be signed in to change notification settings - Fork 67
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
test(logging): allow for overriding and enabling logging of caller field #262
base: main
Are you sure you want to change the base?
test(logging): allow for overriding and enabling logging of caller field #262
Conversation
Pull Request Test Coverage Report for Build 8726458791Details
💛 - Coveralls |
…gingOfCallerField
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; maybe let's queue it after #148, just to make sure it is compatible?
@@ -191,6 +191,9 @@ az-run-sample: ## Deploy sample Provisioner and workload (with 0 replicas, to be | |||
kubectl apply -f examples/v1beta1/general-purpose.yaml | |||
kubectl apply -f examples/workloads/inflate.yaml | |||
|
|||
az-enable-logging-caller: ## Enable logging the caller field (file path, name, and line number) | |||
yq -i '.manifests.helm.releases[0].overrides.logConfig ."disableCaller" = false' skaffold.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yq -i '.manifests.helm.releases[0].overrides.logConfig ."disableCaller" = false' skaffold.yaml | |
yq -i '.manifests.helm.releases[0].overrides.logConfig.disableCaller = false' skaffold.yaml |
(not a blocker)
SG, yea happy to delay |
…gingOfCallerField
…dingAndEnablingLoggingOfCallerField
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All logging improvements are best deferred until we this gets in kubernetes-sigs/karpenter#1050
@charliedmcb please see if this needs to be revisited |
Fixes #389
Description
Allow for overriding and enabling the caller field which contains file path, name, and line number of the log. Also, adds a make command to enable it.
How was this change tested?
created a standalone setup in codespaces, and tested both with, and without
az-enable-logging-caller
to ensure thecaller
field shows up correctly.*
Does this change impact docs?
Release Note