]> git.e2factory.org Git - e2factory.git/commitdiff
transport: improve error message and logging
authorTobias Ulmer <tu@emlix.com>
Wed, 14 Nov 2012 18:21:00 +0000 (19:21 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:11 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/transport.lua

index ae16ae3b4c44e195cff66b49c9b72a825c8a9b80..6dc90f74c01edd3db27ab80d7e90ec55d8f56849 100644 (file)
@@ -212,7 +212,7 @@ function transport.fetch_file(surl, location, destdir, destname)
             return false, e:cat(re)
         end
     else
-        e:append("unknown transport method: %s", u.transport)
+        e:append("fetch file: unhandled transport: %s", u.transport)
         return false, e
     end
     -- move the file into place atomically
@@ -237,8 +237,6 @@ end
 -- @return true on success, false on error
 -- @return nil, an error string on error
 function transport.push_file(sourcefile, durl, location, push_permissions, try_hardlink)
-    e2lib.log(4, string.format("%s: %s %s %s %s", "transport.push_file()",
-    sourcefile, durl, location, tostring(push_permissions)))
     local rc, e
     e = err.new("error pushing file to server")
     durl = string.format("%s/%s", durl, location)