You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current logging within API is very minimal and would require improving to ensure that everything necessary is logged and with appropriate format / level. This makes tracking possible bugs and security incidents easier.
Steps
Authentication/Authorization area should log failed log-in attempts and when possible invalid token are used to attempt to access endpoints.
Exceptions should be logged in a way that they are easy to find and understand what is happening and where
Other endpoints should include necessary information when request is made to one.
Consider adding middleware to log requests.
Currently used logger for logging is loguru.
Usage is as simple as:
fromloguruimportloggerlogger.info("This is info log!")
The text was updated successfully, but these errors were encountered:
Improve logging in lemonapi
Current logging within API is very minimal and would require improving to ensure that everything necessary is logged and with appropriate format / level. This makes tracking possible bugs and security incidents easier.
Steps
Currently used logger for logging is
loguru
.Usage is as simple as:
The text was updated successfully, but these errors were encountered: