From 3c9f4ecfa7886094a2a9a6bb335796b2a74c7f63 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Wed, 1 May 2013 18:14:36 +0000 Subject: QPID-4801: Show error when config file cannot be read. When the configuration code fails to load the file, for whatever reason, it now reports an error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1478133 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/Options.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp') diff --git a/cpp/src/qpid/Options.cpp b/cpp/src/qpid/Options.cpp index c0e955e2b3..ce96c3fee0 100644 --- a/cpp/src/qpid/Options.cpp +++ b/cpp/src/qpid/Options.cpp @@ -16,6 +16,7 @@ * */ +#include "qpid/log/Logger.h" #include "qpid/Options.h" #include "qpid/Exception.h" @@ -196,6 +197,8 @@ void Options::parse(int argc, char const* const* argv, const std::string& config // End of hack } else { + // log the inability to read the configuration file + QPID_LOG(warning, "Config file not read: " << configFile); // No error if default configfile is missing/unreadable // but complain for non-default config file. if (configFile != defaultConfigFile) -- cgit v1.2.1