> Hi, > > I noted that with the configuration from the previous thread > requests for static files and requests handled by the notfound > plugin do not appear in the request log. Is this a bug or am I > still doing something wrong? > -- >
The notfound plugin is a specific need of my company. Writing that kind of plugins is really easy: https://github.com/unbit/uwsgi/blob/master/plugins/notfound/notfound.c (8 lines of code) you can build another one with your needs. For example a notfound + logging would be: #include <uwsgi.h> static int uwsgi_request_notfound(struct wsgi_request *wsgi_req) { uwsgi_404(wsgi_req); return UWSGI_OK; } static void uwsgi_notfound_log(struct wsgi_request *wsgi_req) { log_request(wsgi_req); } struct uwsgi_plugin notfound_plugin = { .name = "notfound", .request = uwsgi_request_notfound, .after_request = uwsgi_notfound_log, }; Another example of special need is the dummy plugin: https://github.com/unbit/uwsgi/blob/master/plugins/dummy/dummy.c as it calls parse_vars() if your instance has no routing in place (in your case the routing subsystem calls parse_vars()) -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
