Improved logging

This commit is contained in:
M66B 2023-06-29 09:05:13 +02:00
parent ac71e20fef
commit 7eec4ea458
1 changed files with 4 additions and 4 deletions

View File

@ -244,7 +244,7 @@ public class ParameterList {
if (tk.getType() != HeaderTokenizer.Token.ATOM) { if (tk.getType() != HeaderTokenizer.Token.ATOM) {
if (!recovered) { if (!recovered) {
StringBuilder sb = new StringBuilder(s); StringBuilder sb = new StringBuilder(s);
int pos = h.getNextPos() - 1; int pos = h.getNextPos();
if (pos < sb.length()) if (pos < sb.length())
sb.insert(pos, "^^^"); sb.insert(pos, "^^^");
eu.faircode.email.Log.e("In parameter list <" + sb + ">" + eu.faircode.email.Log.e("In parameter list <" + sb + ">" +
@ -261,7 +261,7 @@ public class ParameterList {
if ((char)tk.getType() != '=') { if ((char)tk.getType() != '=') {
if (!recovered) { if (!recovered) {
StringBuilder sb = new StringBuilder(s); StringBuilder sb = new StringBuilder(s);
int pos = h.getNextPos() - 1; int pos = h.getNextPos();
if (pos < sb.length()) if (pos < sb.length())
sb.insert(pos, "^^^"); sb.insert(pos, "^^^");
eu.faircode.email.Log.e("In parameter list <" + sb + ">" + eu.faircode.email.Log.e("In parameter list <" + sb + ">" +
@ -286,7 +286,7 @@ public class ParameterList {
type != HeaderTokenizer.Token.QUOTEDSTRING) { type != HeaderTokenizer.Token.QUOTEDSTRING) {
if (!recovered) { if (!recovered) {
StringBuilder sb = new StringBuilder(s); StringBuilder sb = new StringBuilder(s);
int pos = h.getNextPos() - 1; int pos = h.getNextPos();
if (pos < sb.length()) if (pos < sb.length())
sb.insert(pos, "^^^"); sb.insert(pos, "^^^");
eu.faircode.email.Log.e("In parameter list <" + sb + ">" + eu.faircode.email.Log.e("In parameter list <" + sb + ">" +
@ -323,7 +323,7 @@ public class ParameterList {
} else { } else {
if (!recovered) { if (!recovered) {
StringBuilder sb = new StringBuilder(s); StringBuilder sb = new StringBuilder(s);
int pos = h.getNextPos() - 1; int pos = h.getNextPos();
if (pos < sb.length()) if (pos < sb.length())
sb.insert(pos, "^^^"); sb.insert(pos, "^^^");
eu.faircode.email.Log.e("In parameter list <" + sb + ">" + eu.faircode.email.Log.e("In parameter list <" + sb + ">" +