[ARVADOS] created: 62387cc99cafcbca47983b8e1666f56533827a84

Git user git at public.curoverse.com
Tue Sep 5 17:23:36 EDT 2017


        at  62387cc99cafcbca47983b8e1666f56533827a84 (commit)


commit 62387cc99cafcbca47983b8e1666f56533827a84
Author: Tom Morris <tfmorris at veritasgenetics.com>
Date:   Tue Sep 5 17:23:23 2017 -0400

    Add Running to excluded non-categories. Improve error

diff --git a/tools/crunchstat-summary/crunchstat_summary/summarizer.py b/tools/crunchstat-summary/crunchstat_summary/summarizer.py
index 33b9230..613fd65 100644
--- a/tools/crunchstat-summary/crunchstat_summary/summarizer.py
+++ b/tools/crunchstat-summary/crunchstat_summary/summarizer.py
@@ -130,7 +130,7 @@ class Summarizer(object):
                 continue
             elif m.group('category') in ('error', 'caught'):
                 continue
-            elif m.group('category') in ['read', 'open', 'cgroup', 'CID']:
+            elif m.group('category') in ['read', 'open', 'cgroup', 'CID', 'Running']:
                 # "stderr crunchstat: read /proc/1234/net/dev: ..."
                 # (old logs are less careful with unprefixed error messages)
                 continue
@@ -178,8 +178,9 @@ class Summarizer(object):
                         else:
                             stats[stat] = int(val)
                 except ValueError as e:
-                    logger.warning('Error parsing {} stat: {!r}'.format(
-                        stat, e))
+                    logger.warning('Error parsing value "{}" for stat "{}" in category "{}": {!r}'.format(
+                        val, stat, category, e))
+                    logger.warning(line)
                     continue
                 if 'user' in stats or 'sys' in stats:
                     stats['user+sys'] = stats.get('user', 0) + stats.get('sys', 0)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list