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

Update zap options to support specifying log level #308

Merged
merged 2 commits into from
Jul 21, 2022
Merged

Update zap options to support specifying log level #308

merged 2 commits into from
Jul 21, 2022

Conversation

zmrdltl
Copy link
Contributor

@zmrdltl zmrdltl commented Jul 19, 2022

resolved #305
Can check with this command
go run main.go -zap-log-level [level]

[flag] -zap-log-level value: Zap Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error', or any integer value > 0 which corresponds to custom debug levels of increasing verbosity

ref) https://sdk.operatorframework.io/docs/building-operators/golang/references/logging/
By passing args to the spec part of deployment, the log level can be set.

e.g)
https://github.com/OT-CONTAINER-KIT/redis-operator/blob/master/config/manager/manager.yaml
At line 31

args:
  - --leader-elect
  - --zap-log-level=debug

Update zap options to support specifying log level
Signed-off-by: zmrdltl <meenseek5929@naver.com>
@iamabhishek-dubey iamabhishek-dubey merged commit ead242f into OT-CONTAINER-KIT:master Jul 21, 2022
devkmsg added a commit to devkmsg/redis-operator that referenced this pull request Jan 30, 2024
Merge in OSS/redis-operator from master to cs-main

* commit '1f0be5c52f4be026c5fe702fdde37e8b19ab307a':
  Bump terser from 4.8.0 to 4.8.1 in /docs (OT-CONTAINER-KIT#311)
  Add pvc, pv clusterrole for deletion (OT-CONTAINER-KIT#313)
  Update zap options to support specifying log level (OT-CONTAINER-KIT#308)
  [BugFix][Change] Fixed cluster recovery logic (OT-CONTAINER-KIT#304)
  [BugFix][Change] Fixed the logic for probes (OT-CONTAINER-KIT#302)
  Fixed pdb creation issue (OT-CONTAINER-KIT#301)
  [BugFix][Change] Fixed secret whitespace issue in redis password (OT-CONTAINER-KIT#300)
  fix: crash if targetContainer does not exist (OT-CONTAINER-KIT#292)
  fix: crash if redisSecret is incomplete (OT-CONTAINER-KIT#293)
  fix: panic if resources is not present (OT-CONTAINER-KIT#294)
  add: error log when a user tries to modify cr.spec.storage.volumeClaimTemplate (OT-CONTAINER-KIT#280)
  Fixes case where node ip contains another PodIP (OT-CONTAINER-KIT#284)
  Bump eventsource from 1.1.0 to 1.1.1 in /docs (OT-CONTAINER-KIT#282)
  Fixed rbac policy for PDB
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.

Specify log level of redis operator pod
2 participants