aboutsummaryrefslogtreecommitdiff
path: root/tools/clean_webconsole.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-03 11:10:28 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-03 11:10:28 -0700
commitacc4a44f5dd3dc6269eca282f0aa6b208701927d (patch)
tree8a51a116c227c9f10fff4bb2ea4e05a415405193 /tools/clean_webconsole.py
parent9d1c07e8aac8eb404004fa8e31a829036ef38092 (diff)
add little tool to clean web console logs
Diffstat (limited to 'tools/clean_webconsole.py')
-rw-r--r--tools/clean_webconsole.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/clean_webconsole.py b/tools/clean_webconsole.py
new file mode 100644
index 00000000..64af2dd5
--- /dev/null
+++ b/tools/clean_webconsole.py
@@ -0,0 +1,14 @@
+'''
+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:]
+ line = line.split('@')[0]
+ print line
+