From: Tobias Ulmer Date: Wed, 27 Jun 2012 17:46:34 +0000 (+0200) Subject: Fix cache debug logging X-Git-Tag: e2factory-2.3.12rc1~37 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=d8940dcfbb6e0d95afbec5805a280543cf52271f;p=e2factory.git Fix cache debug logging Signed-off-by: Tobias Ulmer --- diff --git a/generic/cache.lua b/generic/cache.lua index 0d54a5d..8827cde 100644 --- a/generic/cache.lua +++ b/generic/cache.lua @@ -215,8 +215,7 @@ end -- @return bool -- @return an error object on failure function cache_enabled(c, server) - e2lib.log(4, "cache.file_in_cache(%s,%s,%s)", tostring(c), - tostring(server)) + e2lib.logf(4, "cache.cache_enabled(%s,%s)", tostring(c), server) local ce, re = ce_by_server(c, server) if not ce then return false, re @@ -231,8 +230,7 @@ end -- @return bool -- @return an error object on failure function file_in_cache(c, server, location) - e2lib.logf(4, "cache.file_in_cache(%s,%s,%s)", tostring(c), - tostring(server), tostring(location)) + e2lib.logf(4, "cache.file_in_cache(%s,%s,%s)", tostring(c), server, location) local ce, re = ce_by_server(c, server) if not ce then return false, re @@ -257,7 +255,7 @@ end -- @return bool -- @return an error object on failure function file_local(c, server, location) - e2lib.logf(4, "file_local(%s,%s,%s)", tostring(c), tostring(server), + e2lib.logf(4, "cache.file_local(%s,%s,%s)", tostring(c), tostring(server), tostring(location)) local rc, re = file_in_cache(c, server, location) if re then