fixing log level to avoid sacring users (#452)

This commit is contained in:
Dmitriy Ryajov 2020-11-24 12:07:27 -06:00 committed by GitHub
parent a3b21f7cbb
commit 21110636cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ method handle*(m: Mplex) {.async, gcsafe.} =
except LPStreamEOFError as exc: except LPStreamEOFError as exc:
trace "Stream EOF", m, msg = exc.msg trace "Stream EOF", m, msg = exc.msg
except CatchableError as exc: except CatchableError as exc:
warn "Unexpected exception in mplex read loop", m, msg = exc.msg debug "Unexpected exception in mplex read loop", m, msg = exc.msg
finally: finally:
await m.close() await m.close()
trace "Stopped mplex handler", m trace "Stopped mplex handler", m

View File

@ -133,7 +133,7 @@ method readOnce*(s: SecureConn,
if not isNil(err): if not isNil(err):
if not (err of LPStreamEOFError): if not (err of LPStreamEOFError):
warn "Error while reading message from secure connection, closing.", debug "Error while reading message from secure connection, closing.",
error=err.name, error=err.name,
message=err.msg, message=err.msg,
connection=s connection=s