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

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2020-11-10 11:45:12 -05:00
1 parent adbc4e9fec
commit 7cf50a15d0
2 files changed
+11 -1

No files matched your search

@@ -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;