mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
add fsctl loglevel [<level>] fsctl command
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5790 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -30,7 +30,8 @@
|
||||
*
|
||||
*/
|
||||
#include <switch.h>
|
||||
|
||||
#include "private/switch_core_pvt.h"
|
||||
struct switch_runtime runtime;
|
||||
|
||||
static const char *LEVELS[] = {
|
||||
"EMERG",
|
||||
@@ -166,6 +167,10 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel_t channel, const char
|
||||
uint32_t len;
|
||||
const char *extra_fmt = "%s [%s] %s:%d %s()%c%s";
|
||||
|
||||
if (level < runtime.hard_log_level) {
|
||||
return;
|
||||
}
|
||||
|
||||
va_start(ap, fmt);
|
||||
|
||||
handle = switch_core_data_channel(channel);
|
||||
|
Reference in New Issue
Block a user