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

consistent environment settings. #201

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

Conversation

morvencao
Copy link
Contributor

@morvencao morvencao commented Oct 14, 2024

Support consistent environment settings for maestro agent with maestro server.
Changed default log level to 4, so that cloudevents will be printed for debug.

@morvencao morvencao force-pushed the br_agent_environment branch from 207deb0 to 3437521 Compare October 14, 2024 09:10
@morvencao
Copy link
Contributor Author

e2e is broken by #203

@morvencao morvencao force-pushed the br_agent_environment branch from 3437521 to 486b7fc Compare October 15, 2024 06:34
@morvencao
Copy link
Contributor Author

/assign @clyang82 @skeeey

@morvencao morvencao force-pushed the br_agent_environment branch from 486b7fc to 857d071 Compare October 16, 2024 03:15
- name: KLOG_V
displayName: KLOG V Level
description: Log verbosity level
value: "1"
Copy link
Contributor

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?

Copy link
Contributor

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 ...

Copy link
Contributor Author

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 to 3.
  • added comments to explain the mapping between klog level and zap log level.

// Initialize zap logger
zc := zap.NewDevelopmentConfig()
// Initialize zap logger based on environment
var zc zap.Config
Copy link
Contributor

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.

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.

3 participants