Commit 3ba5547c authored by Alain Takoudjou's avatar Alain Takoudjou

Fix slapgrid error-log file is removed before end of execution

parent f7254b78
...@@ -1121,7 +1121,7 @@ stderr_logfile_backups=1 ...@@ -1121,7 +1121,7 @@ stderr_logfile_backups=1
# Write error message in a log file assible to computer partition user # Write error message in a log file assible to computer partition user
error_file.write(str(e)) error_file.write(str(e))
raise raise
finally: else:
self.logger.removeHandler(partition_file_handler) self.logger.removeHandler(partition_file_handler)
if os.path.exists(error_output_file): if os.path.exists(error_output_file):
os.unlink(error_output_file) os.unlink(error_output_file)
......
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