From e44c278c68db967f70aa8bf4f3a86d8b12a96a88 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 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);