]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
install our custom timestamp formats in a less disruptive way
authorZooko O'Whielacronx <zooko@zooko.com>
Mon, 15 Oct 2007 03:43:11 +0000 (20:43 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Mon, 15 Oct 2007 03:43:11 +0000 (20:43 -0700)
commit240de64598fdf5ca3ff5dac7423a19d44c8f152d
tree4e3af1edd521fc8f3cae0d285715f72f88f930a7
parenta25ef2f031a1ac63b7f6b1ad6e16e58e68eeaeca
install our custom timestamp formats in a less disruptive way
The unit tests on Windows fail because trial is attempting to remove its own
log observer during teardown.  This patch customizes the extant log observer
object by replacing its formatTime method with our own.

I first tried the approach of storing their log observer object and putting it
back during teardown, but it didn't work (perhaps because our node object
doesn't get a chance to do its deferred stopService behavior in time), and
anyway I generally prefer the "fail-safe", or "crash-only" design.
src/allmydata/node.py