openfoodfacts / search-a-licious

🍊🔎 A pluggable search service for large collections of objects (like Open Food Facts)
https://search.openfoodfacts.org
GNU Affero General Public License v3.0
10 stars 6 forks source link

getLogger behaviour is strange #252

Open alexgarel opened 3 weeks ago

alexgarel commented 3 weeks ago

This is a technical bug.

the app.utils.get_logger method has a strange implementation: when you provide a name, it resets log level to NOT_SET ! Using name when logging is really a good practice as it helps fine tuning log if you have a specific problem to track in production.