mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 13:07:56 +00:00
cpu-watcher.tac: improve error message
This commit is contained in:
parent
46d0c9c995
commit
c90bc3ad71
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user