-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I'm running a django web application by using fcgi (SCGI protocol) as backend. What I get is a plenty of useless log messages coming from scgi-wsgi logger, after each HTTP GET request. I wasn't able to disable this logger, neither with the use the NullHandler(). Currently my configurations is something like that:
from jogging.handlers import DatabaseHandler, NullHandler
import logging
GLOBAL_LOG_LEVEL = logging.WARN
GLOBAL_LOG_HANDLERS = [DatabaseHandler()]
LOGGING = {
'scgi-wsgi': {
'handlers': [NullHandler()],
'level': logging.INFO,
}
}
Of course, this configuration seems not to solve the situation. The content of these log messages is pretty useless, as I already said. This is an example:
mysql> SELECT id, datetime, level, msg FROM jogging_log WHERE source='scgi-wsgi' LIMIT 3;
+-----+---------------------+-------+---------+
| id | datetime | level | msg |
+-----+---------------------+-------+---------+
| 182 | 2010-06-20 02:26:52 | INFO | %s %s%s |
| 183 | 2010-06-20 02:26:57 | INFO | %s %s%s |
| 180 | 2010-06-20 02:23:06 | INFO | %s %s%s |
+-----+---------------------+-------+---------+
3 rows in set (0.00 sec)
Metadata
Metadata
Assignees
Labels
No labels