k8sgpt
fix: set logger for controller-runtime
#1211
Merged

fix: set logger for controller-runtime #1211

AlexsJones merged 1 commit into k8sgpt-ai:main from makllama:log
yeahdongcn
yeahdongcn303 days ago

Closes #1208

📑 Description

Set logger for controller-runtime.

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

Testing done:

  • make docker-build -> ok
  • After applying the newly built Docker image in k8sgpt-operator, this log [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. is no longer present.
yeahdongcn yeahdongcn requested a review 303 days ago
yeahdongcn yeahdongcn requested a review 303 days ago
cf250024
cf250024 approved these changes on 2024-08-02
cf250024302 days ago👍 1

I tested the changes and it works for me. Thanks.

cf250024
cf250024298 days ago

Can we put new code in pkg/server/serve.go instead of cmd/serve/serve.go?
I'm thinking this part is more related to server that cli. I tried this option prior your PR and it also works.

AlexsJones
AlexsJones297 days ago

Can we put new code in pkg/server/serve.go instead of cmd/serve/serve.go? I'm thinking this part is more related to server that cli. I tried this option prior your PR and it also works.

I would be supportive of that also

AlexsJones
AlexsJones requested changes on 2024-08-07
AlexsJones297 days ago

Please move this into the pkg/server/serve.go

yeahdongcn fix: set logger for controller-runtime
29a029ba
yeahdongcn yeahdongcn force pushed from 6186856f to 29a029ba 297 days ago
yeahdongcn
yeahdongcn297 days ago

Please move this into the pkg/server/serve.go

Done. @cf250024 @AlexsJones

AlexsJones
AlexsJones approved these changes on 2024-08-07
AlexsJones AlexsJones merged 8e37369e into main 296 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone