aboutsummaryrefslogtreecommitdiff
path: root/tools/clean_webconsole.py
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-04-03 18:07:33 -0400
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-04-03 18:07:33 -0400
commit6b6c8c6b7f60bfc7edb37801d0f92c45568a15fc (patch)
treee03c45aa2b9f53553a6a34dde1e041a2b4d25cc4 /tools/clean_webconsole.py
parent23b742cea50f3224a73a0446c0eac228100f75af (diff)
parente419c0a9bb69da5d553ab1aa535ff6d3e4e3e0b9 (diff)
Merge remote-tracking branch 'upstream/incoming' into gl_small_fixes
Conflicts: src/library_gl.js
Diffstat (limited to 'tools/clean_webconsole.py')
-rw-r--r--tools/clean_webconsole.py15
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
+