OLD | NEW |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import re | 5 import re |
6 | 6 |
7 | 7 |
8 # File extensions to filter out files from log. | 8 # File extensions to filter out files from log. |
9 SUPPORTED_FILE_EXTENSIONS = [ | 9 SUPPORTED_FILE_EXTENSIONS = [ |
10 'c', | 10 'c', |
11 'cc', | 11 'cc', |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 """Return True if the given line from failure log should be ignored. | 137 """Return True if the given line from failure log should be ignored. |
138 | 138 |
139 Some non-fatal logging messages include a file name and line number, but they | 139 Some non-fatal logging messages include a file name and line number, but they |
140 are not related to the failure at all and could lead to false positive. | 140 are not related to the failure at all and could lead to false positive. |
141 """ | 141 """ |
142 # TODO: log of ERROR level should be taken care of? | 142 # TODO: log of ERROR level should be taken care of? |
143 for log_level in ('INFO:', 'WARNING:', 'ERROR:'): | 143 for log_level in ('INFO:', 'WARNING:', 'ERROR:'): |
144 if log_level in line: | 144 if log_level in line: |
145 return True | 145 return True |
146 return False | 146 return False |
OLD | NEW |