From: Anthony Minessale Date: Wed, 9 Dec 2009 16:06:30 +0000 (+0000) Subject: hide printing of warning for duplicate type errs, the caller still gets it and may... X-Git-Tag: v1.0.6~1099 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a89b33df62e9e84d523595d520f5033de75927e;p=thirdparty%2Ffreeswitch.git hide printing of warning for duplicate type errs, the caller still gets it and may print it too git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15858 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index b82235519e..f3048d5f83 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -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) {