Added log level debug option

This commit is contained in:
M66B
2021-02-27 17:45:08 +01:00
parent 674db36f2c
commit bee33fcf9f
6 changed files with 63 additions and 14 deletions

View File

@@ -577,8 +577,10 @@ public class EmailService implements AutoCloseable {
if (!line.endsWith("ignoring socket timeout"))
if (log)
EntityLog.log(context, user + " " + line);
else
android.util.Log.i("javamail", user + " " + line);
else {
if (BuildConfig.DEBUG)
Log.i("javamail", user + " " + line);
}
bos.reset();
} else
bos.write(b);