Browse Source

lets filter searchd.log when resolving backtrace symbols


git-svn-id: svn://svn.sphinxsearch.com/sphinx/trunk@2838 406a0c4d-033a-0410-8de8-e80135713968
shodan 14 years ago
parent
commit
d9944ec767
1 changed files with 6 additions and 0 deletions
  1. 6 0
      misc/resolve.py

+ 6 - 0
misc/resolve.py

@@ -31,6 +31,12 @@ fp.close()
 fp = myopen(sys.argv[1])
 for line in fp.readlines():
 	line = line.rstrip()
+
+	# skip plain boring log entries
+	if re.search('^\[\w+\s+\w+\s+\d+\s+\d+:\d+:\d+\.\d+ \d+\] \[\d+\] \S', line):
+		continue
+
+	# resolve symbols, if any
 	match = re.search('\[0x([0-9a-fA-F]+)\]', line)
 	if match:
 		addr = int(match.group(1), 16)