Просмотр исходного кода

Display the names of the configuration files used by openais.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1350 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 19 лет назад
Родитель
Сommit
aec3f25bc8
4 измененных файлов с 9 добавлено и 0 удалено
  1. 3 0
      exec/aisparser.c
  2. 1 0
      exec/amf.c
  3. 4 0
      exec/amfutil.c
  4. 1 0
      exec/main.c

+ 3 - 0
exec/aisparser.c

@@ -175,6 +175,9 @@ static int read_config_file_into_objdb(
 
 	fclose(fp);
 
+	sprintf (error_reason, "Successfully read main configuration file '%s'.\n", filename);
+	*error_string = error_reason;
+
 	return res;
 }
 

+ 1 - 0
exec/amf.c

@@ -723,6 +723,7 @@ static int create_cluster_model (void)
 		log_printf (LOG_LEVEL_ERROR, error_string);
 		openais_exit_error (AIS_DONE_AMFCONFIGREAD);
 	}
+	log_printf (LOG_LEVEL_NOTICE, error_string);
 
 	this_amf_node = get_this_node_obj ();
 

+ 4 - 0
exec/amfutil.c

@@ -879,6 +879,10 @@ struct amf_cluster *amf_config_read (char **error_string)
 	}
 
 	fclose (fp);
+
+	sprintf (error_reason, "Successfully read AMF configuration file '%s'.\n", filename);
+	*error_string = buf;
+
 	return cluster;
 
 parse_error:

+ 1 - 0
exec/main.c

@@ -488,6 +488,7 @@ int main (int argc, char **argv)
 		log_printf (LOG_LEVEL_ERROR, error_string);
 		openais_exit_error (AIS_DONE_MAINCONFIGREAD);
 	}
+	log_printf (LOG_LEVEL_NOTICE, error_string);
 
 	openais_service_default_objdb_set (objdb);