cpu-watcher.tac: improve error message

This commit is contained in:
Brian Warner 2008-08-06 21:38:01 -07:00
parent 46d0c9c995
commit c90bc3ad71

View 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: