[elbe-devel] [PATCH 13/32] Add logging to opt.output for command hdimg

dion at linutronix.de dion at linutronix.de
Fri Jun 14 22:13:27 CEST 2019


From: Olivier Dion <dion at linutronix.de>

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/commands/hdimg.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/elbepack/commands/hdimg.py b/elbepack/commands/hdimg.py
index 85111b5c..bff79d7c 100644
--- a/elbepack/commands/hdimg.py
+++ b/elbepack/commands/hdimg.py
@@ -8,11 +8,13 @@
 from __future__ import print_function
 
 import sys
+import os
 
 from optparse import OptionParser
 
 from elbepack.elbeproject import ElbeProject
 from elbepack.elbexml import ValidationError
+from elbepack.log import log
 
 
 def run_command(argv):
@@ -65,7 +67,9 @@ def run_command(argv):
         sys.exit(20)
 
     try:
-        project = ElbeProject(opt.target, override_buildtype=opt.buildtype,
+        log.new(opt.output)
+        project = ElbeProject(opt.target,
+                              override_buildtype=opt.buildtype,
                               xmlpath=args[0], logpath=opt.output,
                               skip_validate=opt.skip_validation)
     except ValidationError as e:
-- 
2.11.0




More information about the elbe-devel mailing list