qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcpie...@apache.org
Subject svn commit: r1478133 - /qpid/trunk/qpid/cpp/src/qpid/Options.cpp
Date Wed, 01 May 2013 18:14:36 GMT
Author: mcpierce
Date: Wed May  1 18:14:36 2013
New Revision: 1478133

URL: http://svn.apache.org/r1478133
Log:
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.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/Options.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/Options.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/Options.cpp?rev=1478133&r1=1478132&r2=1478133&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/Options.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/Options.cpp Wed May  1 18:14:36 2013
@@ -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
                 // 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)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message