More logging cleanup
This commit is contained in:
parent
e59cb34be8
commit
e9d2cfd11e
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue