]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11037: [mod_lua] reduce logging levels
authorEthan Atkins <eatkins@meraki.net>
Sat, 10 Mar 2018 01:25:34 +0000 (17:25 -0800)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:40 +0000 (07:21 +0000)
src/mod/languages/mod_lua/freeswitch_lua.cpp
src/mod/languages/mod_lua/mod_lua.cpp

index 43d00865cff675f1c5e4d6fafe296f0a02e3112d..2225cae07c121c4592b5a542322e4fb865bc444c 100644 (file)
@@ -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;
   }
index b28d16f71536e582abde4222fb2b56f700e2c7d4..47d14c6d484a556791de0d7b20879845e1fa72e0 100644 (file)
@@ -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);