Added tag to protocol dump

pull/207/head
M66B 4 years ago
parent baaed52144
commit 26dd10828f

@ -534,7 +534,7 @@ class Core {
for (TupleOperationEx s : similar.keySet()) for (TupleOperationEx s : similar.keySet())
ops.remove(s); ops.remove(s);
} catch (Throwable ex) { } catch (Throwable ex) {
iservice.dump(); iservice.dump(account.name + "/" + folder.name);
if (ex instanceof OperationCanceledException) if (ex instanceof OperationCanceledException)
Log.i(folder.name, ex); Log.i(folder.name, ex);
else else

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

@ -2227,7 +2227,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
Log.i(account.name + " done state=" + state); Log.i(account.name + " done state=" + state);
} catch (Throwable ex) { } catch (Throwable ex) {
last_fail = ex; last_fail = ex;
iservice.dump(); iservice.dump(account.name);
Log.e(account.name, ex); Log.e(account.name, ex);
EntityLog.log(this, EntityLog.Type.Account, account, EntityLog.log(this, EntityLog.Type.Account, account,
account.name + " connect " + Log.formatThrowable(ex, false)); account.name + " connect " + Log.formatThrowable(ex, false));

Loading…
Cancel
Save