AscendingCreations / AxumSessionAuth

Library to Provide a User Authentication and privilege Token Checks.
MIT License
109 stars 11 forks source link

Wrong log level when user found in cache #32

Closed jhoobergs closed 2 months ago

jhoobergs commented 2 months ago

At https://github.com/AscendingCreations/AxumSessionAuth/blob/main/src/service.rs#L94C1-L94C74 a warn logging is used to log that a user is found in the cache, but I assume that finding a user in a cache is expected behavior? It seems better to change this to a debug log.

Or is there a specific reason why this is a warn log? It floods my server logs...

genusistimelord commented 2 months ago

Yes, it should be set as Debug. If you want, I will accept a PR fixing log levels and even adding Extra loggers.

jhoobergs commented 2 months ago

Thanks for merging. Would it be possible to make a new release?

genusistimelord commented 2 months ago

I can make a small revision release for this tomorrow.

genusistimelord commented 2 months ago

Released on crates.