Browse code

Chore: log socket ids so we can identify the user from an hprof

Thomas Cataldo authored on 15/05/2018 06:51:51
Showing 1 changed files
... ...
@@ -87,8 +87,9 @@ public abstract class AbstractLoginCP extends AbstractProcessor {
87 87
 									ps.setFingerprint(fingerPrint);
88 88
 									ps.setKeepAliveTimer(keepAliveTimer(apiProvider));
89 89
 									long totalMs = System.currentTimeMillis() - start;
90
-									logger.info("[{}] {} srv: {}, tag {} in {}ms.", login, fingerPrint, imap[0], tag,
91
-											totalMs);
90
+									logger.info("[{}] {}, client: {}, upstream: {}, tag {} in {}ms.", login,
91
+											fingerPrint, ps.getClient().writeHandlerID(),
92
+											ps.getServer().writeHandlerID(), tag, totalMs);
92 93
 									authHandler.handle(new Creds(login, loginResp.authKey));
93 94
 								}
94 95
 							}));