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

Enhanced logging #14

Merged
merged 1 commit into from
Nov 3, 2021
Merged

Enhanced logging #14

merged 1 commit into from
Nov 3, 2021

Conversation

eguzki
Copy link
Contributor

@eguzki eguzki commented Nov 2, 2021

Adds better log levels and log configuration.

  • Support for log levels (debuginfoerror)
  • Configurable log modes: production, development
  • Documentation

@eguzki eguzki requested a review from a team November 2, 2021 10:03
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/fake"

"github.com/kuadrant/limitador-operator/pkg/helpers"
"github.com/kuadrant/limitador-operator/pkg/log"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about importing the package from Kuadrant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would be adding adding a dependency to kuadrant-controller, and the kuadrant-controller already has limitador operator as dependency https://github.com/Kuadrant/kuadrant-controller/blob/1d691f6a792cfc4bc0f39de7de3e6c2beba5488c/go.mod#L13

This circular dependency is what I wanted to avoid.

For me, this "shared" code should be part of some external module as suggested by @didierofrivia . When we have enough shared code to be in a external module, we could create it. Meanwhile, duplicating code is the least problematic issue, IMO.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

@eguzki eguzki merged commit da6afb2 into main Nov 3, 2021
@eguzki eguzki deleted the enhanced-logging branch November 3, 2021 09:37
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.

2 participants