diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 79d1ab39a5..b02d4e047e 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);