Python exceptions go to the vhost ErrorLog
, but the logging module writes to stderr
, which under mod_wsgi is sent to Apache’s main error log (/var/log/httpd/error_log
). If you want your logging output in /homedir/error.log
, set up a FileHandler
in your logging config and point it to that file instead of relying on stderr
.