Typos
This commit is contained in:
parent
e283ff2019
commit
000b6635ec
@ -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.
|
||||
|
2
test.py
2
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))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user