*/
if (!pFunc) return RLM_MODULE_NOOP;
- RDEBUG3("Using thread state %p", this_thread->state);
+ RDEBUG3("Using thread state %p/%p", inst, this_thread->state);
PyEval_RestoreThread(this_thread->state); /* Swap in our local thread state */
ret = do_python_single(request, pFunc, funcname);
error:
python_error_log();
- ERROR("%s - Failed to import python function '%s.%s'",
- funcname, def->module_name, def->function_name);
+ ERROR("%s - Failed to import python function '%s.%s'", funcname, def->module_name, def->function_name);
Py_XDECREF(def->function);
def->function = NULL;
Py_XDECREF(def->module);
return ret;
}
-static int mod_thread_instantiate(CONF_SECTION const *conf, void *instance, fr_event_list_t *el, void *thread)
+static int mod_thread_instantiate(UNUSED CONF_SECTION const *conf, void *instance,
+ UNUSED fr_event_list_t *el, void *thread)
{
PyThreadState *state;
rlm_python_t *inst = instance;