]> git.e2factory.org Git - e2factory.git/commitdiff
git: write git archive error messages to debug.log
authorTobias Ulmer <tu@emlix.com>
Thu, 28 Feb 2019 18:39:33 +0000 (19:39 +0100)
committerTobias Ulmer <tu@emlix.com>
Thu, 28 Feb 2019 18:39:33 +0000 (19:39 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/git.lua

index 1f29de2498c6cd62d7b0a1dd88e376c63f6a86da..7ff0271eeecb8a436e84855ba8d8b5bc0df3d537 100644 (file)
@@ -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)