diff --git a/conf.d/jabberclient.conf.sample b/conf.d/jabberclient.conf.sample index 23080265..acde7be1 100644 --- a/conf.d/jabberclient.conf.sample +++ b/conf.d/jabberclient.conf.sample @@ -50,5 +50,5 @@ ; Allowed values are boolean values or 'verbose' string ; If verbose is specified, XML elements' children, attributes or text will be ; shown on separate lines -; Defaults to no -;printxml=no +; Defaults to verbose +;printxml=verbose diff --git a/libs/yjabber/jbengine.cpp b/libs/yjabber/jbengine.cpp index b249d50c..7aebbf5d 100644 --- a/libs/yjabber/jbengine.cpp +++ b/libs/yjabber/jbengine.cpp @@ -748,7 +748,10 @@ void JBEngine::initialize(const NamedList& params) int lvl = params.getIntValue("debug_level",-1); if (lvl != -1) debugLevel(lvl); + JBClientEngine* client = YOBJECT(JBClientEngine,this); String tmp = params.getValue("printxml"); + if (!tmp && client) + tmp = "verbose"; m_printXml = tmp.toBoolean() ? -1: ((tmp == "verbose") ? 1 : 0); m_streamReadBuffer = fixValue(params,"stream_readbuffer",