Activity log for bug #729210

Date Who What changed Old value New value Message
2011-03-04 17:19:34 David Owen bug added bug
2011-03-04 17:20:03 David Owen description Currently, logging is initialized only in django.wsgi. Logging is not initialized when the app is run using manage.py, wsgiserver.py, or wsgi_test_server.py. This means that: command-line preflight cannot verify logging configuration, and neither can a development/test web server. Initialization could be pulled out of django.wsgi and put into a central location. Perhaps a new identityprovider.log module, with an interface similar to Python's logging module. Care must be taken to meet these requirements: 1. Logging should not be initialized before settings in django.conf.settings are available. 2. This should not prevent management commands from running as a user that doesn't have write permissions on the logging destination. 3. The preflight management command should give an accurate indication, when the command is run as the appropriate user. 4. Logging should be initialized no more than once, no matter how it is requested. Beware that some libraries (such as lazr.restful) may load Django applications and their modules before Django itself attempts to. Currently, logging is initialized only in django.wsgi. Logging is not initialized when the app is run using manage.py, wsgiserver.py, or wsgi_test_server.py. This means that: command-line preflight cannot verify logging configuration, and neither can a development/test web server. Initialization could be pulled out of django.wsgi and put into a central location. Perhaps a new identityprovider.log module, with an interface similar to Python's logging module. Care must be taken to meet these requirements:  1. Logging should not be initialized before settings in django.conf.settings are available.  2. This should not prevent management commands from running as a user that doesn't have write permissions on the logging destination.  3. The preflight management command should able to give an accurate indication, when the command is run as the appropriate user.  4. Logging should be initialized no more than once, no matter how it is requested. Beware that some libraries (such as lazr.restful) may load Django applications and their modules before Django itself attempts to.
2011-09-20 21:47:13 Ricardo Kirkner canonical-identity-provider: status New Triaged
2011-09-20 21:47:16 Ricardo Kirkner canonical-identity-provider: importance Undecided Medium