Added tag to protocol dump

This commit is contained in:
M66B
2022-03-29 21:17:53 +02:00
parent baaed52144
commit 26dd10828f
3 changed files with 5 additions and 5 deletions

View File

@@ -885,11 +885,11 @@ public class EmailService implements AutoCloseable {
}
}
public void dump() {
EntityLog.log(context, EntityLog.Type.Protocol, "Dump start");
public void dump(String tag) {
EntityLog.log(context, EntityLog.Type.Protocol, "Dump start " + tag);
while (breadcrumbs != null && !breadcrumbs.isEmpty())
EntityLog.log(context, EntityLog.Type.Protocol, "Dump " + breadcrumbs.pop());
EntityLog.log(context, EntityLog.Type.Protocol, "Dump end");
EntityLog.log(context, EntityLog.Type.Protocol, "Dump end" + tag);
}
private static class SocketFactoryService extends SocketFactory {