-
Notifications
You must be signed in to change notification settings - Fork 21
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
consistent environment settings. #201
base: main
Are you sure you want to change the base?
Conversation
207deb0
to
3437521
Compare
e2e is broken by #203 |
3437521
to
486b7fc
Compare
Signed-off-by: morvencao <[email protected]>
486b7fc
to
857d071
Compare
templates/agent-template-aro-hcp.yml
Outdated
- name: KLOG_V | ||
displayName: KLOG V Level | ||
description: Log verbosity level | ||
value: "1" |
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.
may be 3 by default?
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.
and may add more description? e.g. level 1 means error, level 2 means warning ...
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.
- updated default
KLOG_V
environment in template to3
. - added comments to explain the mapping between klog level and zap log level.
Signed-off-by: morvencao <[email protected]>
// Initialize zap logger | ||
zc := zap.NewDevelopmentConfig() | ||
// Initialize zap logger based on environment | ||
var zc zap.Config |
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.
for zap, it can support dynamically update the log level. that can help us on the troubleshooting. Can we do it instead of update the level in environment variable only? maybe define a configmap for the log level.
Support consistent environment settings for maestro agent with maestro server.
Changed default log level to 4, so that cloudevents will be printed for debug.