diff options
author | randomdan <randomdan@localhost> | 2012-04-24 10:51:44 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2012-04-24 10:51:44 +0000 |
commit | d1d1d2f49ec72932452243a0f53c7fc8b1bdb690 (patch) | |
tree | 73f082cf459daf693267e31da544434cee0fb69b /project2/common/cache.cpp | |
parent | Tidy up some error handling and mutables (diff) | |
download | project2-d1d1d2f49ec72932452243a0f53c7fc8b1bdb690.tar.bz2 project2-d1d1d2f49ec72932452243a0f53c7fc8b1bdb690.tar.xz project2-d1d1d2f49ec72932452243a0f53c7fc8b1bdb690.zip |
Add support for using boost::format for log messages
Fix initialisation of console logger
Diffstat (limited to 'project2/common/cache.cpp')
-rw-r--r-- | project2/common/cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/common/cache.cpp b/project2/common/cache.cpp index ff9f41f..9be5845 100644 --- a/project2/common/cache.cpp +++ b/project2/common/cache.cpp @@ -18,12 +18,12 @@ bool Cache::checkAndExecute(const Glib::ustring & n, const Glib::ustring & f, co RowSetCPtr cached = getCachedRowSet(n, f, rp); if (cached) { try { - Logger()->messagef(LOG_DEBUG, "Executing from cache '%s'", name.c_str()); + Logger()->messagebf(LOG_DEBUG, "Executing from cache '%s'", name); cached->execute(f, rp); return true; } catch (const Glib::Exception & e) { - Logger()->messagef(LOG_WARNING, "Cache failed (%s)", e.what().c_str()); + Logger()->messagebf(LOG_WARNING, "Cache failed (%s)", e.what()); } catch (const std::exception & e) { Logger()->messagef(LOG_WARNING, "Cache failed (%s)", e.what()); |