Include client age/UA string when closing due to a spurious keepalive request.

This commit is contained in:
Jon Chambers
2020-11-10 11:30:32 -05:00
committed by Jon Chambers
parent adbc4e9fec
commit 7cf50a15d0
2 changed files with 11 additions and 1 deletions

View File

@@ -45,7 +45,11 @@ public class KeepAliveController {
{
if (account != null) {
if (!clientPresenceManager.isLocallyPresent(account.getUuid(), account.getAuthenticatedDevice().get().getId())) {
logger.warn("***** No local subscription found for {}::{}", account.getUuid(), account.getAuthenticatedDevice().get().getId());
logger.warn("***** No local subscription found for {}::{}; age = {}ms, User-Agent = {}",
account.getUuid(), account.getAuthenticatedDevice().get().getId(),
System.currentTimeMillis() - context.getClient().getCreatedTimestamp(),
context.getClient().getUserAgent());
context.getClient().close(1000, "OK");
String platform;