/* Other code may elect to protect this message from server-side
* handlers; if this is the case, don't do anything.
- syslog(LOG_DEBUG, "** Event type is %d, flags are %d\n",
- EventType, msg->cm_flags);
+ syslog(LOG_DEBUG, "** Event type is %d, flags are %d\n", EventType, msg->cm_flags);
*/
if (msg->cm_flags & CM_SKIP_HOOKS) {
syslog(LOG_DEBUG, "Skipping hooks\n");
/* Otherwise, run all the hooks appropriate to this event type.
*/
+ int num_hooks_processed = 0;
for (fcn = MessageHookTable; fcn != NULL; fcn = fcn->next) {
if (fcn->eventtype == EventType) {
- total_retval = total_retval +
- (*fcn->h_function_pointer) (msg);
+ total_retval = total_retval + (*fcn->h_function_pointer) (msg);
+ syslog(LOG_DEBUG, "%d hooks completed, total_retval=%d",
+ ++num_hooks_processed, total_retval
+ );
}
}