]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change language in harmless sql warnings and skip one we know happens all the time...
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 8 Jun 2007 15:43:59 +0000 (15:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 8 Jun 2007 15:43:59 +0000 (15:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5293 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_sqldb.c

index 6952355e38f3aaa7262822da7bedfb43a8627f92..b404483e110f16eb8410d3845674a6c052852cd1 100644 (file)
@@ -64,9 +64,10 @@ static switch_status_t switch_core_db_persistant_execute_trans(switch_core_db_t
 
                if (errmsg) {
                        begin_retries--;
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR [%s]\n", errmsg);
                        if (strstr(errmsg, "cannot start a transaction within a transaction")) {
                                again = 1;
+                       } else {
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "SQL Retry [%s]\n", errmsg);
                        }
                        switch_core_db_free(errmsg);