From caef3dad8cb2c7c747d9512629aab88852691b1e Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 5 Jan 2009 19:17:24 +0000 Subject: Log changes: logging default now notice+, "listening on" messages are at notice level. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@731649 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Broker.cpp | 2 +- cpp/src/qpid/log/Options.cpp | 2 +- cpp/src/qpid/sys/RdmaIOPlugin.cpp | 2 +- cpp/src/qpid/sys/SslPlugin.cpp | 2 +- cpp/src/qpid/sys/TCPIOPlugin.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp index f7fe05e860..64be104b98 100644 --- a/cpp/src/qpid/broker/Broker.cpp +++ b/cpp/src/qpid/broker/Broker.cpp @@ -284,7 +284,7 @@ void Broker::setStore (MessageStore* _store) void Broker::run() { accept(); - + QPID_LOG(notice, "Broker running"); Dispatcher d(poller); int numIOThreads = config.workerThreads; std::vector t(numIOThreads-1); diff --git a/cpp/src/qpid/log/Options.cpp b/cpp/src/qpid/log/Options.cpp index 4462099eb2..a33da6fd8f 100644 --- a/cpp/src/qpid/log/Options.cpp +++ b/cpp/src/qpid/log/Options.cpp @@ -41,7 +41,7 @@ Options::Options(const std::string& argv0_, const std::string& name_) : trace(false), sinkOptions (SinkOptions::create(argv0_)) { - selectors.push_back("error+"); + selectors.push_back("notice+"); ostringstream levels; levels << LevelTraits::name(Level(0)); diff --git a/cpp/src/qpid/sys/RdmaIOPlugin.cpp b/cpp/src/qpid/sys/RdmaIOPlugin.cpp index b24dfcc35f..8afe8ba5ef 100644 --- a/cpp/src/qpid/sys/RdmaIOPlugin.cpp +++ b/cpp/src/qpid/sys/RdmaIOPlugin.cpp @@ -230,7 +230,7 @@ static class RdmaIOPlugin : public Plugin { if (broker) { const broker::Broker::Options& opts = broker->getOptions(); ProtocolFactory::shared_ptr protocol(new RdmaIOProtocolFactory(opts.port, opts.connectionBacklog)); - QPID_LOG(info, "Rdma: Listening on RDMA port " << protocol->getPort()); + QPID_LOG(notice, "Rdma: Listening on RDMA port " << protocol->getPort()); broker->registerProtocolFactory("rdma", protocol); } } diff --git a/cpp/src/qpid/sys/SslPlugin.cpp b/cpp/src/qpid/sys/SslPlugin.cpp index c519f5dc80..14052c2ee4 100644 --- a/cpp/src/qpid/sys/SslPlugin.cpp +++ b/cpp/src/qpid/sys/SslPlugin.cpp @@ -98,7 +98,7 @@ static struct SslPlugin : public Plugin { const broker::Broker::Options& opts = broker->getOptions(); ProtocolFactory::shared_ptr protocol(new SslProtocolFactory(options, opts.connectionBacklog, opts.tcpNoDelay)); - QPID_LOG(info, "Listening for SSL connections on TCP port " << protocol->getPort()); + QPID_LOG(notice, "Listening for SSL connections on TCP port " << protocol->getPort()); broker->registerProtocolFactory("ssl", protocol); } catch (const std::exception& e) { QPID_LOG(error, "Failed to initialise SSL plugin: " << e.what()); diff --git a/cpp/src/qpid/sys/TCPIOPlugin.cpp b/cpp/src/qpid/sys/TCPIOPlugin.cpp index a66aca1849..be091f86d8 100644 --- a/cpp/src/qpid/sys/TCPIOPlugin.cpp +++ b/cpp/src/qpid/sys/TCPIOPlugin.cpp @@ -70,7 +70,7 @@ static class TCPIOPlugin : public Plugin { } else { ProtocolFactory::shared_ptr protocol(new AsynchIOProtocolFactory(opts.port, opts.connectionBacklog, opts.tcpNoDelay)); - QPID_LOG(info, "Listening on TCP port " << protocol->getPort()); + QPID_LOG(notice, "Listening on TCP port " << protocol->getPort()); broker->registerProtocolFactory("tcp", protocol); } } -- cgit v1.2.1