From: Anthony Minessale Date: Thu, 9 May 2013 19:34:39 +0000 (-0500) Subject: move log message to avoid logging null X-Git-Tag: v1.2.10~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e44c278c68db967f70aa8bf4f3a86d8b12a96a88;p=thirdparty%2Ffreeswitch.git move log message to avoid logging null --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index a8fe4107c7..9f4609f63c 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -501,6 +501,8 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_h goto end; } + new_dbh = create_handle(type); + switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG10, "Create Cached DB handle %s [%s] %s:%d\n", new_dbh->name, switch_cache_db_type_name(type), file, line);