(logger, core_path)
| 170 | |
| 171 | |
| 172 | def check_core_path(logger, core_path): |
| 173 | corefmt = get_core_pattern() |
| 174 | if corefmt.startswith("|"): |
| 175 | logger.error( |
| 176 | "WARNING: redirecting the core dump through a" |
| 177 | " filter may result in truncated dumps." |
| 178 | ) |
| 179 | logger.error( |
| 180 | " You may want to check the filter settings" |
| 181 | " or uninstall it and edit the" |
| 182 | " /proc/sys/kernel/core_pattern accordingly." |
| 183 | ) |
| 184 | logger.error(" current core pattern is: %s" % corefmt) |
| 185 | |
| 186 | |
| 187 | class NumericConstant: |