}
if (ret < 0) {
- radlog(L_ERR, "rlm_sql (%s): Database query error, %s: %s",
+ radlog(L_ERR,
+ "rlm_sql (%s): Database query error '%s' in query '%s'",
inst->config->xlat_name,
- query,
- (inst->module->sql_error)(*sqlsocket, inst->config));
+ (inst->module->sql_error)(*sqlsocket, inst->config),
+ query);
}
return ret;
}
if (ret < 0) {
- radlog(L_ERR, "rlm_sql (%s): Database query error, %s: %s",
+ radlog(L_ERR,
+ "rlm_sql (%s): Database query error '%s' in query '%s'",
inst->config->xlat_name,
- query,
- (inst->module->sql_error)(*sqlsocket, inst->config));
+ (inst->module->sql_error)(*sqlsocket, inst->config),
+ query);
}
return ret;