Package: dstat / 0.7.4-6

extract-print-plugin-name Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: print plugin name upon errors in o.extract
Author: Emanuele Rocca <ema@debian.org>
Last-Update: 2019-08-03

--- a/dstat
+++ b/dstat
@@ -2777,7 +2794,12 @@ def perform(update):
         line = newline
         oline = ''
         for o in totlist:
-            o.extract()
+            try:
+                o.extract()
+            except Exception as err:
+                print("\n* Exception in plugin", o.name)
+                print(err)
+
             if o in vislist:
                 line = line + o.show() + o.showend(totlist, vislist)
             if op.output and step == op.delay: