From 30c27efb62940b1e1e185e8f33069b308f2b14f9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 9 May 2013 14:34:39 -0500 Subject: [PATCH] move log message to avoid logging null --- src/switch_core_sqldb.c | 2 ++ 1 file changed, 2 insertions(+) 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);