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

logbook.include and logbook.exclude not working #370

Closed
ravidesai47 opened this issue Oct 17, 2018 · 4 comments
Closed

logbook.include and logbook.exclude not working #370

ravidesai47 opened this issue Oct 17, 2018 · 4 comments

Comments

@ravidesai47
Copy link

Using Spring Boot 1.5.12
With Logbook 1.10.0 Autoconfiguration

Setting values
logbook.include=/api/**
or
logbook.exclude=/actuator/**

have no effect on request response logging.

Somehow irrespective of what is setup on include and exclude property, library is logging all the request and responses to the log file.

@ravidesai47
Copy link
Author

I tried to debug the flow but had no lucks to identify why its not working.

@whiskeysierra
Copy link
Collaborator

Both need to be a list, rather than a single string value.

@ravidesai47
Copy link
Author

ravidesai47 commented Oct 17, 2018

Thanks for the help.
After making it array, it is working as expected.
My bad here to provide single value instead of list to those properties.

@whiskeysierra
Copy link
Collaborator

Glad to see that it helped

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

No branches or pull requests

2 participants