Commit 3a460ae4 authored by Luciano Orsini's avatar Luciano Orsini
Browse files

references #116: consistent info/error reporting in log

parent 9e5fd981
......@@ -781,8 +781,7 @@ void elastic::timestream::Application::processEventData(toolbox::mem::Reference*
{
std::stringstream info;
info << "Cannot validate template for flashlist: '" << qname << "', flashlist is not configured for collection (this flashlist is blacklisted)";
XCEPT_DECLARE(elastic::timestream::exception::Exception, q, info.str());
this->notifyQualified("warning", q);
LOG4CPLUS_INFO(this->getApplicationLogger(), info.str());
// blacklist this name
if ( msg != 0 )
msg->release();
......
......@@ -131,7 +131,7 @@ bool sentinel::probe::Application::handleException (xcept::Exception& ex, void*
{
if ( ex.getProperty("urn:xdaq-application:context") == this->getApplicationDescriptor()->getContextDescriptor()->getURL())
{
LOG4CPLUS_ERROR(this->getApplicationLogger(), "Logging qualified exception: " << xcept::stdformat_exception_history(ex));
LOG4CPLUS_INFO(this->getApplicationLogger(), "Logging qualified exception: " << xcept::stdformat_exception_history(ex));
}
}
......
......@@ -143,8 +143,7 @@ void xmas::sensord::Application::onMessage (toolbox::mem::Reference * ref, xdata
{
std::stringstream info;
info << "Cannot forward flashlist: '" << name << "', flashlist is not configured for collection (this flashlist is blacklisted)";
XCEPT_DECLARE(xmas::sensord::exception::Exception, q, info.str());
this->notifyQualified("warning", q);
LOG4CPLUS_INFO(this->getApplicationLogger(), info.str());
// blacklist this name
if ( ref != 0 )
ref->release();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment