|
253 | 253 | }, |
254 | 254 | "filters": { |
255 | 255 | "require_debug_false": {"()": "django.utils.log.RequireDebugFalse"}, |
| 256 | + "suppress_ws_pings": { |
| 257 | + "()": "common.logging_filters.SuppressWebSocketPings", |
| 258 | + }, |
| 259 | + "suppress_revproxy_noise": { |
| 260 | + "()": "common.logging_filters.SuppressRevProxyNoise", |
| 261 | + }, |
256 | 262 | }, |
257 | 263 | "handlers": { |
258 | 264 | "logfile": { |
|
269 | 275 | "stream": sys.stdout, |
270 | 276 | "class": "logging.StreamHandler", |
271 | 277 | "formatter": env.str("LOG_FORMATTER", "standard"), |
| 278 | + "filters": ["suppress_ws_pings", "suppress_revproxy_noise"], |
272 | 279 | }, |
273 | 280 | "mail_admins": { |
274 | 281 | "level": "ERROR", |
|
286 | 293 | "urllib3": {"handlers": ["console", "logfile"], "level": "INFO", "propagate": False}, |
287 | 294 | "common.models": {"handlers": ["console", "logfile"], "level": "INFO", "propagate": False}, |
288 | 295 | "common.signals": {"handlers": ["console", "logfile"], "level": "INFO", "propagate": False}, |
289 | | - "uvicorn.error": {"handlers": ["console"], "level": "WARNING", "propagate": False}, |
290 | | - "uvicorn.access": {"handlers": ["console"], "level": "WARNING", "propagate": False}, |
| 296 | + "uvicorn": { |
| 297 | + "handlers": ["console"], |
| 298 | + "level": "INFO", |
| 299 | + "propagate": False, |
| 300 | + }, |
| 301 | + "uvicorn.error": { |
| 302 | + "handlers": ["console"], |
| 303 | + "level": "DEBUG", |
| 304 | + "propagate": False, |
| 305 | + "filters": ["suppress_ws_pings"], |
| 306 | + }, |
| 307 | + "uvicorn.access": { |
| 308 | + "handlers": ["console"], |
| 309 | + "level": "INFO", |
| 310 | + "propagate": False, |
| 311 | + }, |
| 312 | + "revproxy": { |
| 313 | + "handlers": ["console"], |
| 314 | + "level": "INFO", |
| 315 | + "propagate": False, |
| 316 | + "filters": ["suppress_revproxy_noise"], |
| 317 | + }, |
| 318 | + "revproxy.view": { |
| 319 | + "handlers": ["console"], |
| 320 | + "level": "INFO", |
| 321 | + "propagate": False, |
| 322 | + "filters": ["suppress_revproxy_noise"], |
| 323 | + }, |
| 324 | + "revproxy.response": { |
| 325 | + "handlers": ["console"], |
| 326 | + "level": "INFO", |
| 327 | + "propagate": False, |
| 328 | + "filters": ["suppress_revproxy_noise"], |
| 329 | + }, |
291 | 330 | }, |
292 | 331 | # Keep root at DEBUG and use the `level` on the handler to control logging output, |
293 | 332 | # so that additional handlers can be used to get additional detail, e.g. `common.resources.LoggingResourceMixin` |
|
0 commit comments