From 768a1e33e56c579edbcab1d4ea73d06b85cdd06c Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 19 Aug 2010 04:10:43 +0000 Subject: 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 --- sca-cpp/trunk/kernel/monad.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sca-cpp/trunk/kernel/monad.hpp') 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 const lambda(const V)> success() * Returns a failable monad with a failure in it. */ template const failable 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(false, f); } -- cgit v1.2.3