projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be9b9c5
)
fix run error during output errmsg
79/297079/1
author
biao716.wang
<biao716.wang@samsung.com>
Thu, 10 Aug 2023 03:30:53 +0000
(12:30 +0900)
committer
biao716.wang
<biao716.wang@samsung.com>
Thu, 10 Aug 2023 03:30:53 +0000
(12:30 +0900)
Change-Id: I67c04a0dd9970ba34d4504e6099d00bfba33dbd9
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
mic/msger.py
patch
|
blob
|
history
diff --git
a/mic/msger.py
b/mic/msger.py
index
f7131e1
..
f4856e7
100644
(file)
--- a/
mic/msger.py
+++ b/
mic/msger.py
@@
-217,6
+217,9
@@
class MicFileHandler(logging.FileHandler):
""" Log catched error message from stderr redirector """
if not self.errmsg:
return
+
+ if isinstance(self.errmsg, bytes):
+ self.errmsg = self.errmsg.decode()
sys.stdout.write(self.errmsg)
sys.stdout.flush()