Skip to content

Commit

Permalink
Merge pull request #31 from ufcg-lsd/remove-duplicated-logs
Browse files Browse the repository at this point in the history
remove duplicated logs
  • Loading branch information
armstrongmsg authored Apr 30, 2020
2 parents 828ab93 + f51a0c9 commit 237327e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions visualizer/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class Log:
def __init__(self, name, output_file_path):
self._verify_existing_paths()
self.logger = logging.getLogger(name)
self.logger.propagate = False

if not len(self.logger.handlers):
handler = logging.StreamHandler()
handler.setLevel(logging.INFO)
Expand Down

0 comments on commit 237327e

Please sign in to comment.