Commit 52d7d208 authored by lavocat's avatar lavocat
Browse files

Related to #4 No need to print twice logs

Logs for subprocess without catching line object where printing twice.
This commit remove the unecessary printing and just leave a color
difference.
parent 56806300
......@@ -902,7 +902,6 @@ class Erebor:
self.propagate_dead_nodes(snode, snetid, error_nodes)
def subprocess_callback(self, networkId, txt) :
self.logger.info("SUBPROCESS {}".format(txt))
dispactch = False
toremove = []
for i in range(0, len(self.running_commands)) :
......@@ -916,8 +915,9 @@ class Erebor:
self.logger.info("end propagation")
break
if dispactch == False :
self.logger.warning(bcolors.WARNING+ txt +bcolors.ENDC)
self.logger.info(bcolors.WARNING+ "SUBPROCESS {}".format(txt) +bcolors.ENDC)
else :
self.logger.debug("SUBPROCESS {}".format(txt))
for i in toremove :
del self.running_commands[i]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment