]> sjero.net Git - linphone/blobdiff - coreapi/linphonecore.c
fix bug when choosing SDP connection address
[linphone] / coreapi / linphonecore.c
index 5f70f45e158e1a6fd08d64226aa2a0def26c21df..729df1fc6e7118c6edba9621aa6e1a6fe7e87de2 100644 (file)
@@ -418,11 +418,6 @@ void linphone_core_set_log_file(FILE *file) {
 
 void linphone_core_set_log_level(OrtpLogLevel loglevel) {
        ortp_set_log_level_mask(loglevel);
-       if (loglevel == 0) {
-               sal_disable_logs();
-       } else {
-               sal_enable_logs();
-       }
 }
 
 /**
@@ -1216,9 +1211,8 @@ void linphone_core_set_state(LinphoneCore *lc, LinphoneGlobalState gstate, const
 }
 static void misc_config_read (LinphoneCore *lc) {
        LpConfig *config=lc->config;
-    lc->max_call_logs=lp_config_get_int(config,"misc","history_max_size",15);
-    lc->max_calls=lp_config_get_int(config,"misc","max_calls",NB_MAX_CALLS);
-       linphone_core_set_log_level((OrtpLogLevel)lp_config_get_int(config,"misc","log_level",0));
+       lc->max_call_logs=lp_config_get_int(config,"misc","history_max_size",15);
+       lc->max_calls=lp_config_get_int(config,"misc","max_calls",NB_MAX_CALLS);
 }
 
 
@@ -2175,12 +2169,10 @@ void linphone_core_iterate(LinphoneCore *lc){
        }
 
        if (one_second_elapsed) {
-               if (ortp_get_log_level_mask() != lp_config_get_int(lc->config, "misc", "log_level", 0)) {
-                       lp_config_set_int(lc->config, "misc", "log_level", ortp_get_log_level_mask());
-               }
                if (lp_config_needs_commit(lc->config)) {
                        lp_config_sync(lc->config);
                }
+       }
 }
 
 /**