Changeset - 1c72e967096c
[Not reviewed]
0 2 0
Jan Kaluza - 14 years ago 2011-09-12 13:51:45
hanzz.k@gmail.com
Do not show '<auth>...</auth>' in XML log
2 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
spectrum/src/sample.cfg
Show inline comments
 
@@ -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
src/transport.cpp
Show inline comments
 
@@ -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) {
0 comments (0 inline, 0 general)