From: Brian Warner Date: Thu, 7 Aug 2008 04:38:01 +0000 (-0700) Subject: cpu-watcher.tac: improve error message X-Git-Url: https://git.rkrishnan.org/vdrive/configuration.txt?a=commitdiff_plain;h=c90bc3ad715810c6568a599cc7335cb8f9cb1807;p=tahoe-lafs%2Ftahoe-lafs.git cpu-watcher.tac: improve error message --- diff --git a/misc/cpu-watcher.tac b/misc/cpu-watcher.tac index 4546454e..da8d29ab 100644 --- a/misc/cpu-watcher.tac +++ b/misc/cpu-watcher.tac @@ -197,6 +197,7 @@ class CPUWatcher(service.MultiService, resource.Resource, Referenceable): while len(self.history[pid]) > max_history+1: self.history[pid].pop(0) except: + log.msg("error reading process %s (%s), ignoring" % (pid, name)) log.err() pickle.dump(self.history, open("history.pickle", "wb")) for (pid, name) in processes: