提交 64c3ecf2 authored 作者: Michael Jerris's avatar Michael Jerris

use switch_log_printf instead of switch_console printf so it will hit other logger services.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4239 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 66f4c256
...@@ -111,12 +111,12 @@ void CDRContainer::reload(switch_stream_handle_t *stream) ...@@ -111,12 +111,12 @@ void CDRContainer::reload(switch_stream_handle_t *stream)
switch_xml_t xml_root; switch_xml_t xml_root;
if ((xml_root = switch_xml_open_root(1, &err))) { if ((xml_root = switch_xml_open_root(1, &err))) {
switch_console_printf(SWITCH_CHANNEL_LOG,"Reloading the XML file...\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Reloading the XML file...\n");
switch_xml_free(xml_root); switch_xml_free(xml_root);
} }
if (!(xml = switch_xml_open_cfg(configfile, &cfg, NULL))) if (!(xml = switch_xml_open_cfg(configfile, &cfg, NULL)))
switch_console_printf(SWITCH_CHANNEL_LOG,"open of %s failed\n", configfile); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "open of %s failed\n", configfile);
else else
{ {
BaseRegistry& registry(BaseRegistry::get()); BaseRegistry& registry(BaseRegistry::get());
...@@ -144,7 +144,7 @@ void CDRContainer::reload(switch_stream_handle_t *stream) ...@@ -144,7 +144,7 @@ void CDRContainer::reload(switch_stream_handle_t *stream)
switch_xml_free(xml); switch_xml_free(xml);
switch_queue_unblockpop(cdrqueue); switch_queue_unblockpop(cdrqueue);
switch_console_printf(SWITCH_CHANNEL_LOG,"mod_cdr configuration reloaded."); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "mod_cdr configuration reloaded.");
} }
void CDRContainer::queue_pause(switch_stream_handle_t *stream) void CDRContainer::queue_pause(switch_stream_handle_t *stream)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论