@@ -58,7 +58,7 @@ public synchronized void addSubscription(
58
58
reverse .put (connection , new HashSet <>());
59
59
}
60
60
reverse .get (connection ).add (characteristic );
61
- LOGGER .debug (
61
+ LOGGER .trace (
62
62
"Added subscription to {}:{} ({}) for {}" ,
63
63
aid ,
64
64
iid ,
@@ -73,7 +73,7 @@ public synchronized void removeSubscription(
73
73
if (subscribers != null ) {
74
74
subscribers .connections .remove (connection );
75
75
if (subscribers .connections .isEmpty ()) {
76
- LOGGER .debug ("Unsubscribing from characteristic as all subscriptions are closed" );
76
+ LOGGER .trace ("Unsubscribing from characteristic as all subscriptions are closed" );
77
77
characteristic .unsubscribe ();
78
78
subscriptions .remove (characteristic );
79
79
}
@@ -85,7 +85,7 @@ public synchronized void removeSubscription(
85
85
if (connectionNotifications .isEmpty ()) pendingNotifications .remove (connection );
86
86
}
87
87
88
- LOGGER .debug (
88
+ LOGGER .trace (
89
89
"Removed subscription from {}:{} ({}) for {}" ,
90
90
subscribers .aid ,
91
91
subscribers .iid ,
@@ -112,7 +112,7 @@ private void removeConnection(
112
112
removeSubscription (characteristic , connection );
113
113
}
114
114
}
115
- LOGGER .debug ("Removed connection {}" , connection .hashCode ());
115
+ LOGGER .trace ("Removed connection {}" , connection .hashCode ());
116
116
}
117
117
118
118
public synchronized void batchUpdate () {
@@ -173,7 +173,7 @@ public synchronized void publish(int accessoryId, int iid, EventableCharacterist
173
173
* characteristics
174
174
*/
175
175
public synchronized void resync (HomekitRegistry registry ) {
176
- LOGGER .debug ("Resyncing subscriptions" );
176
+ LOGGER .trace ("Resyncing subscriptions" );
177
177
flushUpdateBatch ();
178
178
179
179
Map <EventableCharacteristic , ConnectionsWithIds > newSubscriptions = new HashMap <>();
@@ -187,7 +187,7 @@ public synchronized void resync(HomekitRegistry registry) {
187
187
registry .getCharacteristics (subscribers .aid ).get (subscribers .iid );
188
188
if (newCharacteristic == null || newCharacteristic .getType () != oldCharacteristic .getType ()) {
189
189
// characteristic is gone or has completely changed; drop all subscriptions for it
190
- LOGGER .debug (
190
+ LOGGER .trace (
191
191
"{}:{} ({}) has gone missing; dropping subscriptions." ,
192
192
subscribers .aid ,
193
193
subscribers .iid ,
@@ -199,7 +199,7 @@ public synchronized void resync(HomekitRegistry registry) {
199
199
} else if (newCharacteristic != oldCharacteristic ) {
200
200
EventableCharacteristic newEventableCharacteristic =
201
201
(EventableCharacteristic ) newCharacteristic ;
202
- LOGGER .debug (
202
+ LOGGER .trace (
203
203
"{}:{} has been replaced by a compatible characteristic; re-connecting subscriptions" ,
204
204
subscribers .aid ,
205
205
subscribers .iid );
@@ -242,16 +242,16 @@ private void subscribe(int aid, int iid, EventableCharacteristic characteristic)
242
242
243
243
/** Remove all existing subscriptions */
244
244
public synchronized void removeAll () {
245
- LOGGER .debug ("Removing {} reverse connections from subscription manager" , reverse .size ());
245
+ LOGGER .trace ("Removing {} reverse connections from subscription manager" , reverse .size ());
246
246
Iterator <Map .Entry <HomekitClientConnection , Set <EventableCharacteristic >>> i =
247
247
reverse .entrySet ().iterator ();
248
248
while (i .hasNext ()) {
249
249
Map .Entry <HomekitClientConnection , Set <EventableCharacteristic >> entry = i .next ();
250
250
HomekitClientConnection connection = entry .getKey ();
251
- LOGGER .debug ("Removing connection {}" , connection .hashCode ());
251
+ LOGGER .trace ("Removing connection {}" , connection .hashCode ());
252
252
i .remove ();
253
253
removeConnection (connection , entry .getValue ());
254
254
}
255
- LOGGER .debug ("Subscription sizes are {} and {}" , reverse .size (), subscriptions .size ());
255
+ LOGGER .trace ("Subscription sizes are {} and {}" , reverse .size (), subscriptions .size ());
256
256
}
257
257
}
0 commit comments