Merge branch 'refine-some-logging'
This commit is contained in:
commit
b1ed8e8671
|
@ -526,12 +526,12 @@ extension TunnelKitProvider {
|
||||||
}
|
}
|
||||||
log.info("\tMTU: \(mtu)")
|
log.info("\tMTU: \(mtu)")
|
||||||
log.info("\tCompression framing: \(compressionFraming)")
|
log.info("\tCompression framing: \(compressionFraming)")
|
||||||
if let keepAliveSeconds = keepAliveSeconds {
|
if let keepAliveSeconds = keepAliveSeconds, keepAliveSeconds > 0 {
|
||||||
log.info("\tKeep-alive: \(keepAliveSeconds) seconds")
|
log.info("\tKeep-alive: \(keepAliveSeconds) seconds")
|
||||||
} else {
|
} else {
|
||||||
log.info("\tKeep-alive: default")
|
log.info("\tKeep-alive: never")
|
||||||
}
|
}
|
||||||
if let renegotiatesAfterSeconds = renegotiatesAfterSeconds {
|
if let renegotiatesAfterSeconds = renegotiatesAfterSeconds, renegotiatesAfterSeconds > 0 {
|
||||||
log.info("\tRenegotiation: \(renegotiatesAfterSeconds) seconds")
|
log.info("\tRenegotiation: \(renegotiatesAfterSeconds) seconds")
|
||||||
} else {
|
} else {
|
||||||
log.info("\tRenegotiation: never")
|
log.info("\tRenegotiation: never")
|
||||||
|
|
|
@ -902,7 +902,7 @@ public class SessionProxy {
|
||||||
|
|
||||||
let pushedFraming = pushReply.compressionFraming
|
let pushedFraming = pushReply.compressionFraming
|
||||||
if let negFraming = pushedFraming {
|
if let negFraming = pushedFraming {
|
||||||
log.info("\tNegotiated compression framing: \(negFraming.rawValue)")
|
log.info("\tNegotiated compression framing: \(negFraming)")
|
||||||
}
|
}
|
||||||
if let negPing = pushReply.ping {
|
if let negPing = pushReply.ping {
|
||||||
log.info("\tNegotiated keep-alive: \(negPing) seconds")
|
log.info("\tNegotiated keep-alive: \(negPing) seconds")
|
||||||
|
|
Loading…
Reference in New Issue