Do not show '<auth>...</auth>' in XML log

This commit is contained in:
Jan Kaluza 2011-09-12 13:51:45 +02:00
parent 36f4fb8870
commit 1c72e96709
2 changed files with 7 additions and 3 deletions

View file

@ -9,8 +9,8 @@ backend_port=10001
admin_username=admin
admin_password=test
#idle_reconnect_time=10
cert=server.pfx #patch to PKCS#12 certificate
cert_password=test #password to that certificate if any
#cert=server.pfx #patch to PKCS#12 certificate
#cert_password=test #password to that certificate if any
users_per_backend=10
backend=/home/hanzz/code/libtransport/backends/libpurple/spectrum_libpurple_backend
#backend=../../backends/libircclient-qt/spectrum_libircclient-qt_backend

View file

@ -20,6 +20,7 @@
#include "transport/transport.h"
#include <boost/bind.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include "transport/storagebackend.h"
#include "transport/factory.h"
#include "transport/userregistry.h"
@ -212,7 +213,10 @@ void Component::handleConnectionError(const ComponentError &error) {
}
void Component::handleDataRead(const Swift::SafeByteArray &data) {
LOG4CXX_INFO(logger_xml, "XML IN " << safeByteArrayToString(data));
std::string d = safeByteArrayToString(data);
if (!boost::starts_with(d, "<auth")) {
LOG4CXX_INFO(logger_xml, "XML IN " << d);
}
}
void Component::handleDataWritten(const Swift::SafeByteArray &data) {