[Solved] mod_counter plugin - debug info how to
I built and installed mod_counter as described in tutorial:
i.e. mod_counter.so and mod_counter.la are installed into lib
I added "log_error_write(srv, FILE, LINE, "s",
"-- mod_counterhandler called")"
into every handler of module but nothing appears in the error.log, like module is never loaded
So, my questions: why? Is it really never loaded, or are there some debugging settings in config file i have to add to see what's happened in the module?
RE: [Solved] mod_counter plugin - debug info how to - Added by gstrauss 11 months ago
You need to add server.modules += ( "mod_counter" ) and then your module will be called in the hooks for which your module registers a handler. Temporarily disable other modules if you think that those modules are intercepting and handling the request prior to your hooks being called.