More logging cleanup

This commit is contained in:
DaMachinator 2018-01-23 10:22:04 -05:00 committed by Arcanitor
parent e59cb34be8
commit e9d2cfd11e
1 changed files with 1 additions and 2 deletions

View File

@ -27,11 +27,10 @@ class HttpStreamConnection(private val getClosure: () -> HttpGet, private val mh
try {
while (!get.isAborted) {
val chars = content.read(buf)
CivilEngineering.logger.debug("incoming: $chars ")
if (chars > 0) {
buffer += String(buf.dropLast(buf.count() - chars).toByteArray())
CivilEngineering.logger.info(buffer)
CivilEngineering.logger.debug(buffer)
while (buffer.contains("\n")) {
val line = buffer.substringBefore("\n")