Add some color to the log view

This commit is contained in:
M66B
2021-08-15 20:46:28 +02:00
parent b8bddfedbf
commit e28a10120f
4 changed files with 36 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ package eu.faircode.email;
Copyright 2018-2021 by Marcel Bokhorst (M66B)
*/
import static eu.faircode.email.EntityLog.LOG_PROTOCOL;
import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_GMAIL;
import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_OAUTH;
@@ -576,7 +577,7 @@ public class EmailService implements AutoCloseable {
String line = bos.toString();
if (!line.endsWith("ignoring socket timeout"))
if (log)
EntityLog.log(context, user + " " + line);
EntityLog.log(context, LOG_PROTOCOL, user + " " + line);
else {
if (BuildConfig.DEBUG)
Log.i("javamail", user + " " + line);