summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <mebrown@michaels-house.net>2007-10-18 22:03:12 -0500
committerMichael E Brown <mebrown@michaels-house.net>2007-10-18 22:03:12 -0500
commite8d0ec6c8f7c9331fe272cc73152afd2f4980275 (patch)
tree4849d9ba8f558662d54dd0948c75ea499a3baca5
parent9e820575ac528d562fc9bd207c8674bfed03589d (diff)
downloadmock-e8d0ec6c8f7c9331fe272cc73152afd2f4980275.tar.gz
mock-e8d0ec6c8f7c9331fe272cc73152afd2f4980275.tar.xz
mock-e8d0ec6c8f7c9331fe272cc73152afd2f4980275.zip
dont overwrite log files on subsequent builds. per request from mbonnet.
-rw-r--r--src/py-libs/backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py-libs/backend.py b/src/py-libs/backend.py
index 809383d..e634368 100644
--- a/src/py-libs/backend.py
+++ b/src/py-libs/backend.py
@@ -519,7 +519,7 @@ class Root(object):
(self.build_log, "build.log"),
(self.root_log, "root.log")):
fullPath = os.path.join(self.statedir, filename)
- fh = logging.FileHandler(fullPath, "w+")
+ fh = logging.FileHandler(fullPath, "a+")
fh.setFormatter(formatter)
fh.setLevel(logging.NOTSET)
log.addHandler(fh)