diff options
| author | Darryl L. Pierce <mcpierce@apache.org> | 2013-05-01 18:14:36 +0000 |
|---|---|---|
| committer | Darryl L. Pierce <mcpierce@apache.org> | 2013-05-01 18:14:36 +0000 |
| commit | 51b07fcb56d6f0a2378490d51ab58bb848dec354 (patch) | |
| tree | e58a858abfce2fcdcc9abc302bf34992be5fee94 /qpid/cpp/src | |
| parent | dc0f3f50753f096c59bf2e8fe01b6c98784bd0a4 (diff) | |
| download | qpid-python-51b07fcb56d6f0a2378490d51ab58bb848dec354.tar.gz | |
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
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/Options.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
