Standardization of logger usage
There are many different places using different loggers. But they are used without rules.
Mainly there are three loggers:
- LOG = logging.
- self.log
- self.app.log
Let's take an example first. In class ListNetwork in network.py,
- LOG will be "openstackclien
- self.log will be "openstackclien
- self.app.log will be "openstackclien
As we can see in the source code, volume commands are mostly using self.app.log, while image commands are mostly using self.log. And network commands hardly record any log.
So we have two problems need to fix.
1. Set up rules to standardize logger usage, and fix all the incorrect usage in the source code.
2. Add missing logs to those who didn't log key info.
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Standardize logger usage in volume
Addressed by: https:/
Add doc for logger usage
Addressed by: https:/
Standardize logger usage
Addressed by: https:/
Standardize logger usage of catalog in identity V2.0