diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-19 04:10:43 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-19 04:10:43 +0000 |
commit | 768a1e33e56c579edbcab1d4ea73d06b85cdd06c (patch) | |
tree | 5ea1f2c67ad34a17155c221711df7eff010034d2 /sca-cpp/trunk/kernel/monad.hpp | |
parent | d4184f1ab86fd589126f3de2ed9fa433cf1b54b2 (diff) |
Script fixes to get database working with the HTTPS-enabled store-cluster sample configuration. Also some logging improvements and aggregation of the sample logs using scribe.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@987012 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/kernel/monad.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sca-cpp/trunk/kernel/monad.hpp b/sca-cpp/trunk/kernel/monad.hpp index 8aa4bc1662..d87a382ee1 100644 --- a/sca-cpp/trunk/kernel/monad.hpp +++ b/sca-cpp/trunk/kernel/monad.hpp @@ -29,6 +29,8 @@ #include "function.hpp" #include "string.hpp" #include "stream.hpp" +#include "sstream.hpp" +#include "fstream.hpp" namespace tuscany { @@ -275,7 +277,12 @@ template<typename V, typename F> const lambda<failable<V, F>(const V)> success() * Returns a failable monad with a failure in it. */ template<typename V, typename F> const failable<V, F> mkfailure(const F& f) { - debug(f, "failable::mkfailure"); +#ifdef WANT_MAINTAINER_MODE + ostringstream os; + os << f; + if (length(str(os)) != 0) + debug(f, "failable::mkfailure"); +#endif return failable<V, F>(false, f); } |