httpcache icon indicating copy to clipboard operation
httpcache copied to clipboard

Implement way to handle log messages

Open thetillhoff opened this issue 3 years ago • 1 comments

In the current state, the client will print cached-item already expired failed to retrieve from cache, trying with a live version whenever a cache miss happens. And there doesn't seems to be a way to disable/handle those log messages. Or, if there is one, it's not documented.

Whenever a cache makes sense in a go project, there tend to be quite a lot of requests as well. In order to not clog the logs, it would be a very useful feature to be able to adjust what is printed and when - or just disable the messages completely as a first step.

thetillhoff avatar May 29 '22 17:05 thetillhoff

Thanks for the issue, will fix this. I'm swamped at the moment. Hopefully I can work on this before 2023

bxcodec avatar Dec 27 '22 06:12 bxcodec