Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamajidian committed Mar 31, 2024
1 parent e9fd497 commit 92a7a8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions read2tree/Mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,10 @@ def _output_shell(self, line):
return None

(output, err) = shell_command.communicate()
self.logger.debug("Shell output: "+ str(output))
self.logger.debug("Shell err: " + str(err))
if output:
self.logger.debug("Shell output: "+ str(output))
if err:
self.logger.debug("Shell err: " + str(err))

shell_command.wait()
if shell_command.returncode != 0:
Expand Down

0 comments on commit 92a7a8f

Please sign in to comment.