]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
cpu-watcher.tac: improve error message
authorBrian Warner <warner@lothar.com>
Thu, 7 Aug 2008 04:38:01 +0000 (21:38 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 7 Aug 2008 04:38:01 +0000 (21:38 -0700)
misc/cpu-watcher.tac

index 4546454e0dc459464758bdbbc411f500412779be..da8d29abedaae08b0e7c6db5ded1e2926b05bd85 100644 (file)
@@ -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: