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 | 3c9f4ecfa7886094a2a9a6bb335796b2a74c7f63 (patch) | |
| tree | a4d33c9b5d9d634c1d5ea5ec20ec953830f2b40c /cpp | |
| parent | e989e7e907c94afca9a68713abb47d53d7967731 (diff) | |
| download | qpid-python-3c9f4ecfa7886094a2a9a6bb335796b2a74c7f63.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/qpid@1478133 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/qpid/Options.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
