diff --git a/OOMAnalyser.py b/OOMAnalyser.py index ef56d4b..6bb1389 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -264,7 +264,7 @@ class OOMEntity(object): def _rsyslog_unescape_lf(self, oom_lines): """ - Rsyslog replaces line breaks with their ocal representation #012. + Rsyslog replaces line breaks with their octal representation #012. This feature can be controlled inside the rsyslog configuration with the directives $EscapeControlCharactersOnReceive, $Escape8BitCharactersOnReceive and $ControlCharactersEscapePrefix. diff --git a/test.py b/test.py index 5cdef41..220181f 100755 --- a/test.py +++ b/test.py @@ -259,7 +259,7 @@ class TestPython(TestBase): (6, 'Apr 01 14:13:32 mysrv kernel: [11686.888109] sed invoked oom-killer: gfp_mask=0x84d0, order=0, oom_adj=0, oom_score_adj=0'), ]: to_strip = oom_entity._number_of_columns_to_strip(line) - self.assertEqual(to_strip, pos, 'Calc wrong number of colums to strip for "%s": got: %d, expect: %d' % ( + self.assertEqual(to_strip, pos, 'Calc wrong number of columns to strip for "%s": got: %d, expect: %d' % ( line, to_strip, pos))