Skip to content

Commit

Permalink
SectionManager: Close output objects
Browse files Browse the repository at this point in the history
  • Loading branch information
sils committed Apr 15, 2015
1 parent 97b92ab commit ce25f8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions coalib/settings/SectionManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ def retrieve_logging_objects(self, section):
Creates an appropriate log printer and interactor according to the
settings.
"""
if self.interactor is not None:
self.interactor.close()
if self.log_printer is not None:
self.log_printer.close()

log_type = str(section.get("log_type", "console")).lower()
output_type = str(section.get("output", "console")).lower()
str_log_level = str(section.get("log_level", "")).upper()
Expand Down

1 comment on commit ce25f8c

@fneu
Copy link
Contributor

@fneu fneu commented on ce25f8c Apr 15, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

Please sign in to comment.