mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-15 08:41:50 +00:00
backport per-session loglevel from stkn's branch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16390 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1712,6 +1712,19 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
|
||||
return status;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_session_set_loglevel(switch_core_session_t *session, switch_log_level_t loglevel)
|
||||
{
|
||||
switch_assert(session != NULL);
|
||||
session->loglevel = loglevel;
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_log_level_t) switch_core_session_get_loglevel(switch_core_session_t *session)
|
||||
{
|
||||
switch_assert(session != NULL);
|
||||
return session->loglevel;
|
||||
}
|
||||
|
||||
/* For Emacs:
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
|
||||
Reference in New Issue
Block a user