summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/cache/datacache.cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-11-21 08:47:18 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-11-21 08:47:18 +0000
commitce2b2a6f5ca8e2bbdcbe90661bb39bd7d2d16422 (patch)
treec688f9721443d62109de1d955e514dbe7f5a1d3a /sca-cpp/trunk/components/cache/datacache.cpp
parent57ff384203570508e81cdf5dfaa0cb96478e7654 (diff)
Change default log level from 'info' to 'notice' and improve some of the log messages.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1204402 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/components/cache/datacache.cpp')
-rw-r--r--sca-cpp/trunk/components/cache/datacache.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/sca-cpp/trunk/components/cache/datacache.cpp b/sca-cpp/trunk/components/cache/datacache.cpp
index e1cfdbfa57..502a57671d 100644
--- a/sca-cpp/trunk/components/cache/datacache.cpp
+++ b/sca-cpp/trunk/components/cache/datacache.cpp
@@ -52,8 +52,11 @@ const failable<value> get(const value& key, const lambda<value(const list<value>
// Lookup level2 cache
const value val2 = rcache2(mklist<value>("get", key));
- if (isNil(val2))
- return mkfailure<value>("Couldn't get cache entry");
+ if (isNil(val2)) {
+ ostringstream os;
+ os << "Couldn't get cache entry: " << key;
+ return mkfailure<value>(str(os));
+ }
// Update level1 cache
wcache1(mklist<value>("put", key, val2));