Index: /branches/rel_apv_10_7/usr/click/lib/libfastlogcli/fastlogcli.c
===================================================================
--- /branches/rel_apv_10_7/usr/click/lib/libfastlogcli/fastlogcli.c	(revision 39264)
+++ /branches/rel_apv_10_7/usr/click/lib/libfastlogcli/fastlogcli.c	(working copy)
@@ -547,6 +547,12 @@
 	uint16_t id = 0;
 	uint16_t delimiter = 0;
 
+	if ( fastlog_get_config_data(&gconf) < 0 ) {
+		/*get log config data from kernel*/
+		iaprintf("cannot access fastlog configuration\n");
+		return -1;/*failing*/
+	}
+
 	log_level_t newlevel = fast_log_string_to_level(level);
 	if (newlevel == -1) {
 		iaprintf("The log level must be one of the following:\n\t"
@@ -566,11 +572,6 @@
 			   "The local log level is at least greater than or equal to %s\n",fast_log_level_to_string(gconf.min_level));
 		return -1;
 	}
-	if ( fastlog_get_config_data(&gconf) < 0 ) {
-		/*get log config data from kernel*/
-		iaprintf("cannot access fastlog configuration\n");
-		return -1;/*failing*/
-	}
 	if (gconf.local_log_server_on == 1) {
 		gconf.svr[0].level = newlevel;
 		iaprintf("localhost log has been opened, change the log level to %s\n", level);
