if ( (ctdb->recovery_mode != CTDB_RECOVERY_NORMAL) &&
(! event_allowed_during_recovery(event)) ) {
- DEBUG(DEBUG_ERR,
- ("Refusing to run event '%s' while in recovery\n",
- ctdb_event_to_string(event)));
+ D_ERR("Refusing to run event '%s' while in recovery\n",
+ ctdb_event_to_string(event));
return -1;
}
}
if (! check_options(event, arg_str)) {
- DEBUG(DEBUG_ERR,
- ("Bad event script arguments '%s' for '%s'\n",
- arg_str, ctdb_event_to_string(event)));
+ DBG_ERR("Bad event script arguments '%s' for '%s'\n",
+ arg_str,
+ ctdb_event_to_string(event));
talloc_free(arg_str);
return -1;
}