From 51b07fcb56d6f0a2378490d51ab58bb848dec354 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@1478133 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/Options.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qpid/cpp/src/qpid/Options.cpp b/qpid/cpp/src/qpid/Options.cpp index c0e955e2b3..ce96c3fee0 100644 --- a/qpid/cpp/src/qpid/Options.cpp +++ b/qpid/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