]> git.e2factory.org Git - e2factory.git/commitdiff
e2build: don't spam build output into debug.log
authorTobias Ulmer <tu@emlix.com>
Wed, 22 Jun 2016 17:06:46 +0000 (19:06 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2build.lua

index 67fd801b60971331ecddedf2654778f81c7cbb06..0d28bbd43119c074aced08265700b8f1228f5f88 100644 (file)
@@ -457,7 +457,11 @@ local function runbuild(info, resultname, return_flags)
     end
 
     local function logto(output)
-        e2lib.log(3, output)
+        if e2lib.getlog(3) then
+            -- no need to spam debug.log unless requested,
+            -- we're already writing the same output to build.log
+            e2lib.log(3, output)
+        end
         eio.fwrite(out, output)
     end