[ADD] add more logging

This commit is contained in:
Benedek Racz 2020-02-01 21:45:58 +01:00
parent 557f759ff6
commit 40bcc2d241
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@ envlist = py{37}-spawn_pipe
[testenv]
description = Unit tests
setenv =
WEXPECT_LOGGER_LEVEL = DEBUG
WEXPECT_LOGGER_LEVEL = SPAM
spawn_pipe: WEXPECT_SPAWN_CLASS=SpawnPipe
legacy_wexpect: WEXPECT_SPAWN_CLASS=legacy_wexpect
commands =

View File

@ -341,7 +341,9 @@ class ConsoleReaderBase:
readlen = 4000
endPoint = self.getCoord(startOff + readlen)
logger.spam(f'readlen: {readlen} startCo: {startCo}')
s = self.consout.ReadConsoleOutputCharacter(readlen, startCo)
logger.spam(f'ReadConsoleOutputCharacter:{s}')
self.lastRead += len(s)
self.totalRead += len(s)
buff.append(s)