When script is running, this function could be executed multiple times in same second.
If it would happen, it wouldn't be easy find where starts which execution.
rtn = ""
with open(os.path.join(sf(conf.log_folder),
process_name + '-' + time.strftime("%y-%m-%d-%H-%M-%S") + ".log"),
- "w") as f:
+ "a") as f:
+ f.write('::' + time.strftime("%y-%m-%d-%H-%M-%S-%f") + '::')
for linen in sprc.stdout:
line = linen.decode(sys.getdefaultencoding())
f.write(line)