mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-22 22:36:01 +00:00
Improve logging
This commit is contained in:
1 parent
89a0569ffe
commit
e33f16f048
2 files changed
+16
No files matched your search
@@ -65,6 +65,9 @@ class NearbyConnection {
|
||||
|
||||
|
||||
func start() {
|
||||
|
||||
log("[NearbyConnection \(self.id)] Starting connection.")
|
||||
|
||||
connection.stateUpdateHandler = { state in
|
||||
|
||||
if !self.connectionClosed {
|
||||
@@ -425,6 +428,11 @@ class NearbyConnection {
|
||||
sendKeepAlive(ack: true)
|
||||
} else {
|
||||
|
||||
if offlineFrame.hasV1, offlineFrame.v1.hasType, offlineFrame.v1.type == .bandwidthUpgradeRetry {
|
||||
// only supporting WiFi for now, ignore upgrade request to other mediums
|
||||
return
|
||||
}
|
||||
|
||||
log("[NearbyConnection \(self.id)] Unhandled offline frame encrypted: \(offlineFrame)")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user