From 4876cb76a7559822657f411fdda0a862fc312cfa Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Fri, 9 Mar 2018 17:25:34 -0800 Subject: [PATCH] FS-11037: [mod_lua] reduce logging levels --- src/mod/languages/mod_lua/freeswitch_lua.cpp | 4 ++-- src/mod/languages/mod_lua/mod_lua.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/languages/mod_lua/freeswitch_lua.cpp b/src/mod/languages/mod_lua/freeswitch_lua.cpp index 43d00865cf..2225cae07c 100644 --- a/src/mod/languages/mod_lua/freeswitch_lua.cpp +++ b/src/mod/languages/mod_lua/freeswitch_lua.cpp @@ -369,7 +369,7 @@ Dbh::Dbh(char *dsn, char *user, char *pass) } if (!zstr(dsn) && switch_cache_db_get_db_handle_dsn(&dbh, dsn) == SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "DBH handle %p Connected.\n", (void *) dbh); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "DBH handle %p Connected.\n", (void *) dbh); } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Connection failed. DBH NOT Connected.\n"); } @@ -398,7 +398,7 @@ char *Dbh::last_error() bool Dbh::release() { if (dbh) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "DBH handle %p released.\n", (void *) dbh); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "DBH handle %p released.\n", (void *) dbh); switch_cache_db_release_db_handle(&dbh); return true; } diff --git a/src/mod/languages/mod_lua/mod_lua.cpp b/src/mod/languages/mod_lua/mod_lua.cpp index b28d16f715..47d14c6d48 100644 --- a/src/mod/languages/mod_lua/mod_lua.cpp +++ b/src/mod/languages/mod_lua/mod_lua.cpp @@ -459,7 +459,7 @@ static void lua_event_handler(switch_event_t *event) } mod_lua_conjure_event(L, event, "event", 1); - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "lua event hook: execute '%s'\n", (char *)script); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "lua event hook: execute '%s'\n", (char *)script); lua_parse_and_execute(L, (char *)script, NULL); lua_uninit(L);