]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
hide printing of warning for duplicate type errs, the caller still gets it and may...
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 9 Dec 2009 16:06:30 +0000 (16:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 9 Dec 2009 16:06:30 +0000 (16:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15858 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_sqldb.c

index b82235519e461e8d4111ad2d88177ac86e1d51e9..f3048d5f83eb17ffecc8e4639dd9e9a6b2168f09 100644 (file)
@@ -388,7 +388,7 @@ static switch_status_t switch_cache_db_execute_sql_real(switch_cache_db_handle_t
        }
 
        if (errmsg) {
-               if (!switch_stristr("already exists", errmsg)) {
+               if (!switch_stristr("already exists", errmsg) && !switch_stristr("duplicate key name", errmsg)) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR [%s]\n%s\n", errmsg, sql);
                }
                if (err) {