]> git.e2factory.org Git - e2factory.git/commitdiff
Remove disabled debug code in cache.new_cache()
authorTobias Ulmer <tu@emlix.com>
Sat, 4 Aug 2012 01:22:37 +0000 (03:22 +0200)
committerTobias Ulmer <tu@emlix.com>
Mon, 6 Aug 2012 09:47:57 +0000 (11:47 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/cache.lua

index bfb6089a5dd71c0df7e2faf0323409cc4c2049f8..5172003fa1185e7964b55d51a261d56b02762b13 100644 (file)
@@ -57,20 +57,17 @@ require("url")
 -- @param url base url for this cache, must use file transport
 -- @return a cache table
 function new_cache(name, url)
-       local debug = false
        local c = {}
        c.name = name
        c.url = url
        c.ce = {}
-       e2lib.log(4, "Cache: " .. c.name)
-       e2lib.log(4, " url: " .. c.url)
-       if debug then
-               for k,v in pairs(c) do
-                       print(k,v)
-               end
-       end
+
+       e2lib.logf(4, "Cache: %s", c.name)
+       e2lib.logf(4, " url: %s", c.url)
+
        local meta = { __index = cache }
        setmetatable(c, meta)
+
        return c
 end