Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Don't write duplicate log entries after being daemonized
Browse files Browse the repository at this point in the history
After being daemonized for the propagate and unpropagate operations,
workspace-control would write duplicate log entries. This happens
because we don't remove the old log handler before adding a new one.
We now remove the log handler when we are closing the log file before
forking.

Closes #103.
  • Loading branch information
priteau committed Jul 3, 2012
1 parent e9d23be commit 73173b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions control/src/python/workspacecontrol/defaults/Common.py
Expand Up @@ -123,6 +123,7 @@ def close_logfile(self):
return
if not self.logfilehandler:
return
self.log.removeHandler(self.logfilehandler)
self.logfilehandler.close()
self.logfilehandler = None

Expand Down

0 comments on commit 73173b5

Please sign in to comment.