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

Add support for logging print statements from rego #628

Merged
merged 3 commits into from
Dec 24, 2024

Conversation

aabidsofi19
Copy link
Member

Description

This PR fixes #

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

// Implements print.Hook interface
func (h *CustomPrintHook) Print(ctx print.Context, s string) error {
h.Messages = append(h.Messages, s)
logrus.Info("[OPA] ", s)
Copy link
Member

Choose a reason for hiding this comment

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

Should MeshKit use its own logger?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah , right now there is no instance of meshkit logger present in meskit
we should probably configure a instance of logger in meskit and use it .

@leecalcote
Copy link
Member

This improved DevEx should help a good bit.

@aabidsofi19 aabidsofi19 merged commit a30e177 into meshery:master Dec 24, 2024
3 of 4 checks passed
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