crm_str_to_boolean(param_val, &uselogd);
cl_str_to_boolean(param_val, &uselogd);
crm_set_ha_options(ll_cluster_t *hb_cluster) {#if 0	int facility;	char *param_val = NULL;	const char *param_name = NULL;	if(hb_cluster == NULL) {		crm_set_env_options();		return;	}		/* change the logging facility to the one used by heartbeat daemon */	crm_debug("Switching to Heartbeat logger");	if (( facility =	      hb_cluster->llc_ops->get_logfacility(hb_cluster)) > 0) {		cl_log_set_facility(facility); 	}		crm_debug_2("Facility: %d", facility);	param_name = KEY_LOGFILE;	param_val = hb_cluster->llc_ops->get_parameter(hb_cluster, param_name);	crm_debug_3("%s = %s", param_name, param_val);	if(param_val != NULL) {		cl_log_set_logfile(param_val);		cl_free(param_val);		param_val = NULL;	}		param_name = KEY_DBGFILE;	param_val = hb_cluster->llc_ops->get_parameter(hb_cluster, param_name);	crm_debug_3("%s = %s", param_name, param_val);	if(param_val != NULL) {		cl_log_set_debugfile(param_val);		cl_free(param_val);		param_val = NULL;	}		param_name = KEY_DEBUGLEVEL;	param_val = hb_cluster->llc_ops->get_parameter(hb_cluster, param_name);	crm_debug_3("%s = %s", param_name, param_val);	if(param_val != NULL) {		int debug_level = atoi(param_val);		if(debug_level > 0 && (debug_level+LOG_INFO) > (int)crm_log_level) {			set_crm_log_level(LOG_INFO + debug_level);		}		cl_free(param_val);		param_val = NULL;	}	param_name = KEY_LOGDAEMON;	param_val = hb_cluster->llc_ops->get_parameter(hb_cluster, param_name);	crm_debug_3("%s = %s", param_name, param_val);	if(param_val != NULL) {		int uselogd;		crm_str_to_boolean(param_val, &uselogd);		cl_log_set_uselogd(uselogd);		if(cl_log_get_uselogd()) {			cl_set_logging_wqueue_maxlen(500);		}		cl_free(param_val);		param_val = NULL;	}	param_name = KEY_CONNINTVAL;	param_val = hb_cluster->llc_ops->get_parameter(hb_cluster, param_name);	crm_debug_3("%s = %s", param_name, param_val);	if(param_val != NULL) {		int logdtime;		logdtime = crm_get_msec(param_val);		cl_log_set_logdtime(logdtime);		cl_free(param_val);		param_val = NULL;	}#endif}