[elbe-devel] [PATCH 4/4] Change log level for error in write license of RFS

Olivier Dion dion at linutronix.de
Thu Mar 5 06:23:39 CET 2020


This is useful for the target RFS since '/usr/share/doc/' might not
exists.  Thus changing log level from exception to warning to prevent
the build from failing.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/efilesystem.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/elbepack/efilesystem.py b/elbepack/efilesystem.py
index 5bc20afd..395947b6 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -150,8 +150,8 @@ class ElbeFilesystem(Filesystem):
                 with io.open(copyright_fname, "rb") as lic:
                     lic_text = lic.read()
             except IOError as e:
-                logging.exception("Error while processing license file %s",
-                                  copyright_fname)
+                logging.warning("Error while processing license file %s",
+                                copyright_fname)
                 lic_text = "Error while processing license file %s: '%s'" % (
                     copyright_file, e.strerror)
 
-- 
2.25.1




More information about the elbe-devel mailing list