From c31aa5d38f8dfe8d0bdfa9e1e584b095f624ae63 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 22 Jan 2014 21:01:13 +0000 Subject: [PATCH] Log channel UUID by default We want people to have this on so that when we're looking at reported log files we can tell what is going on. --- conf/vanilla/autoload_configs/logfile.conf.xml | 4 ++-- conf/vanilla/autoload_configs/syslog.conf.xml | 4 ++-- .../mod_logfile/conf/autoload_configs/logfile.conf.xml | 4 ++-- src/mod/loggers/mod_logfile/mod_logfile.c | 5 +++-- .../loggers/mod_syslog/conf/autoload_configs/syslog.conf.xml | 4 ++-- src/mod/loggers/mod_syslog/mod_syslog.c | 1 + 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/conf/vanilla/autoload_configs/logfile.conf.xml b/conf/vanilla/autoload_configs/logfile.conf.xml index 65bea552bd..546db4abaf 100644 --- a/conf/vanilla/autoload_configs/logfile.conf.xml +++ b/conf/vanilla/autoload_configs/logfile.conf.xml @@ -13,8 +13,8 @@ - - + + - + + diff --git a/src/mod/loggers/mod_logfile/conf/autoload_configs/logfile.conf.xml b/src/mod/loggers/mod_logfile/conf/autoload_configs/logfile.conf.xml index 65bea552bd..546db4abaf 100644 --- a/src/mod/loggers/mod_logfile/conf/autoload_configs/logfile.conf.xml +++ b/src/mod/loggers/mod_logfile/conf/autoload_configs/logfile.conf.xml @@ -13,8 +13,8 @@ - - + + - + + diff --git a/src/mod/loggers/mod_syslog/mod_syslog.c b/src/mod/loggers/mod_syslog/mod_syslog.c index 045b9831ab..d0fe2dea1d 100644 --- a/src/mod/loggers/mod_syslog/mod_syslog.c +++ b/src/mod/loggers/mod_syslog/mod_syslog.c @@ -181,6 +181,7 @@ static switch_status_t load_config(void) /* default facility */ globals.facility = DEFAULT_FACILITY; + globals.log_uuid = SWITCH_TRUE; if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);