From: Tobias Ulmer Date: Wed, 14 Nov 2012 18:21:00 +0000 (+0100) Subject: transport: improve error message and logging X-Git-Tag: e2factory-2.3.13rc1~93 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=579998dc81febd22976e0410a15c3f3f9f101ba7;p=e2factory.git transport: improve error message and logging Signed-off-by: Tobias Ulmer --- diff --git a/generic/transport.lua b/generic/transport.lua index ae16ae3..6dc90f7 100644 --- a/generic/transport.lua +++ b/generic/transport.lua @@ -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)