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.
This commit is contained in:
parent
e51cca5991
commit
c31aa5d38f
|
@ -13,8 +13,8 @@
|
|||
<!-- Maximum number of log files to keep before wrapping -->
|
||||
<!-- If this parameter is enabled, the log filenames will not include a date stamp -->
|
||||
<!-- <param name="maximum-rotate" value="32"/> -->
|
||||
<!-- Uncomment to prefix all log lines by the session's uuid -->
|
||||
<!-- <param name="uuid" value="true" /> -->
|
||||
<!-- Prefix all log lines by the session's uuid -->
|
||||
<param name="uuid" value="true" />
|
||||
</settings>
|
||||
<mappings>
|
||||
<!--
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<param name="facility" value="user"/>
|
||||
<param name="ident" value="freeswitch"/>
|
||||
<param name="loglevel" value="warning"/>
|
||||
<!-- Uncomment the following line to log uuids in syslogs (when applicable) -->
|
||||
<!-- <param name="uuid" value="true"/> -->
|
||||
<!-- log uuids in syslogs -->
|
||||
<param name="uuid" value="true"/>
|
||||
</settings>
|
||||
</configuration>
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
<!-- Maximum number of log files to keep before wrapping -->
|
||||
<!-- If this parameter is enabled, the log filenames will not include a date stamp -->
|
||||
<!-- <param name="maximum-rotate" value="32"/> -->
|
||||
<!-- Uncomment to prefix all log lines by the session's uuid -->
|
||||
<!-- <param name="uuid" value="true" /> -->
|
||||
<!-- Prefix all log lines by the session's uuid -->
|
||||
<param name="uuid" value="true" />
|
||||
</settings>
|
||||
<mappings>
|
||||
<!--
|
||||
|
|
|
@ -325,6 +325,7 @@ static switch_status_t load_profile(switch_xml_t xml)
|
|||
new_profile->name = switch_core_strdup(module_pool, switch_str_nil(name));
|
||||
|
||||
new_profile->suffix = 1;
|
||||
new_profile->log_uuid = SWITCH_TRUE;
|
||||
|
||||
if ((settings = switch_xml_child(xml, "settings"))) {
|
||||
for (param = switch_xml_child(settings, "param"); param; param = param->next) {
|
||||
|
@ -339,8 +340,8 @@ static switch_status_t load_profile(switch_xml_t xml)
|
|||
if (new_profile->max_rot == 0) {
|
||||
new_profile->max_rot = MAX_ROT;
|
||||
}
|
||||
} else if (!strcmp(var, "uuid") && switch_true(val)) {
|
||||
new_profile->log_uuid = SWITCH_TRUE;
|
||||
} else if (!strcmp(var, "uuid")) {
|
||||
new_profile->log_uuid = switch_true(val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<param name="facility" value="user"/>
|
||||
<param name="ident" value="freeswitch"/>
|
||||
<param name="loglevel" value="warning"/>
|
||||
<!-- Uncomment the following line to log uuids in syslogs (when applicable) -->
|
||||
<!-- <param name="uuid" value="true"/> -->
|
||||
<!-- log uuids in syslogs -->
|
||||
<param name="uuid" value="true"/>
|
||||
</settings>
|
||||
</configuration>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue