From: Tobias Ulmer Date: Thu, 28 Feb 2019 18:39:33 +0000 (+0100) Subject: git: write git archive error messages to debug.log X-Git-Tag: e2factory-2.3.18rc1~30 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=7b25bebbf3f681416310baae23a3b6533ec2e9ef;p=e2factory.git git: write git archive error messages to debug.log Signed-off-by: Tobias Ulmer --- diff --git a/plugins/git.lua b/plugins/git.lua index 1f29de2..7ff0271 100644 --- a/plugins/git.lua +++ b/plugins/git.lua @@ -610,9 +610,14 @@ function git.git_source:prepare_source(sourceset, buildpath) return false, re end + local function log_git(msg) + e2lib.log(3, "[git archive]: "..msg) + end + fdctv = { { istype = "readfo", dup = eio.STDIN, file = devnull }, - { istype = "readfo", dup = eio.STDOUT, file = writeend } + { istype = "readfo", dup = eio.STDOUT, file = writeend }, + { istype = "writefunc", dup = eio.STDERR, linebuffer = true, callfn = log_git }, } pid, re = e2lib.callcmd(git_argv, fdctv, nil, nil, true)