Define test logging setting in openstack_auth
We see the following message when running openstack_auth UT.
This is due to no LOGGING definition in openstack_auth/test/settings.py.
No handlers could be found for logger "openstack_auth.utils"
@@ -74,3 +74,20 @@ TEMPLATES = [
]
AUTH_USER_MODEL = 'openstack_auth.User'
+
+LOGGING = {
+ 'version': 1,
+ 'disable_existing_loggers': False,
+ 'handlers': {
+ 'test': {
+ 'level': 'ERROR',
+ 'class': 'logging.StreamHandler',
+ }
+ },
+ 'loggers': {
+ 'openstack_auth': {
+ 'handlers': ['test'],
+ 'propagate': False,
+ },
+ }
+}
