This commit is contained in:
Carsten Grohmann 2021-07-21 21:04:11 +02:00
parent e283ff2019
commit 000b6635ec
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ class OOMEntity(object):
def _rsyslog_unescape_lf(self, oom_lines): 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 This feature can be controlled inside the rsyslog configuration with the directives
$EscapeControlCharactersOnReceive, $Escape8BitCharactersOnReceive and $ControlCharactersEscapePrefix. $EscapeControlCharactersOnReceive, $Escape8BitCharactersOnReceive and $ControlCharactersEscapePrefix.

View File

@ -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'), (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) 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)) line, to_strip, pos))