diff options
Diffstat (limited to 'tools/clean_webconsole.py')
-rw-r--r-- | tools/clean_webconsole.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/clean_webconsole.py b/tools/clean_webconsole.py new file mode 100644 index 00000000..550ace9a --- /dev/null +++ b/tools/clean_webconsole.py @@ -0,0 +1,15 @@ +''' +Removes timestamp and line info from a webgl log +''' + +import os, sys + +lines = sys.stdin.read().split('\n') + +for line in lines: + if line.startswith('['): + line = line[15:] + if line.startswith(('[', ']')): + line = line.split('@')[0] + print line + |