logger: Look up the correct start position, not two bytes before.

7 jobs for master in 1 minute and 34 seconds
Status Job ID Name Coverage
  Test
passed #18971
allowed to fail
pylint-plugins

00:01:34

failed #18968
pytest-3.5

00:00:36

failed #18969
pytest-3.6

00:00:37

failed #18970
pytest-latest

00:00:41

passed #18967
security-check

00:00:33

 
  Build
skipped #18972
www
build-doc
skipped #18973
build-ubuntu
 
Name Stage Failure
failed
pytest-latest Test
ImportError while importing test module '/builds/poezio/poezio/test/test_logger.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test/test_logger.py:5: in <module>
from poezio.logger import LogMessage, parse_log_line, parse_log_lines, build_log_message
E ImportError: cannot import name 'parse_log_line' from 'poezio.logger' (/usr/local/lib/python3.7/site-packages/poezio-0.13.dev65-py3.7-linux-x86_64.egg/poezio/logger.py)
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.68 seconds ============================
ERROR: Job failed: exit code 1
failed
pytest-3.6 Test
ImportError while importing test module '/builds/poezio/poezio/test/test_logger.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test/test_logger.py:5: in <module>
from poezio.logger import LogMessage, parse_log_line, parse_log_lines, build_log_message
E ImportError: cannot import name 'parse_log_line'
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.92 seconds ============================
ERROR: Job failed: exit code 1
failed
pytest-3.5 Test
ImportError while importing test module '/builds/poezio/poezio/test/test_logger.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test/test_logger.py:5: in <module>
from poezio.logger import LogMessage, parse_log_line, parse_log_lines, build_log_message
E ImportError: cannot import name 'parse_log_line'
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.88 seconds ============================
ERROR: Job failed: exit code 1