xmpp: Add a bit more logging
This commit is contained in:
		
							parent
							
								
									63b698ee8e
								
							
						
					
					
						commit
						3fbe0adfe3
					
				@ -46,6 +46,7 @@ class MoxxyStreamManagementManager extends StreamManagementManager {
 | 
				
			|||||||
  Future<void> commitStreamResumptionId() async {
 | 
					  Future<void> commitStreamResumptionId() async {
 | 
				
			||||||
    final srid = getStreamResumptionId();
 | 
					    final srid = getStreamResumptionId();
 | 
				
			||||||
    if (srid !=  null) {
 | 
					    if (srid !=  null) {
 | 
				
			||||||
 | 
					      getAttributes().log("Saving resumption token: ${srid}");
 | 
				
			||||||
      await GetIt.I.get<XmppRepository>().saveStreamResumptionId(srid);
 | 
					      await GetIt.I.get<XmppRepository>().saveStreamResumptionId(srid);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@ -53,6 +54,7 @@ class MoxxyStreamManagementManager extends StreamManagementManager {
 | 
				
			|||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Future<void> loadStreamResumptionId() async {
 | 
					  Future<void> loadStreamResumptionId() async {
 | 
				
			||||||
    final id = await GetIt.I.get<XmppRepository>().getStreamResumptionId();
 | 
					    final id = await GetIt.I.get<XmppRepository>().getStreamResumptionId();
 | 
				
			||||||
 | 
					    getAttributes().log("Setting resumption token: " + (id ?? ""));
 | 
				
			||||||
    if (id != null) {
 | 
					    if (id != null) {
 | 
				
			||||||
      setStreamResumptionId(id);
 | 
					      setStreamResumptionId(id);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user