From c90bc3ad715810c6568a599cc7335cb8f9cb1807 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 6 Aug 2008 21:38:01 -0700 Subject: [PATCH] cpu-watcher.tac: improve error message --- misc/cpu-watcher.tac | 1 + 1 file changed, 1 insertion(+) 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: -- 2.45.2