log tweaks

This commit is contained in:
zzz
2019-05-29 15:51:04 +00:00
parent e189236e3e
commit 307a8239fb
2 changed files with 9 additions and 4 deletions

View File

@ -255,6 +255,8 @@ public class BlindData {
buf.append("\n\tBlinded Hash : ").append(_blindHash);
if (_secret != null)
buf.append("\n\tSecret : \"").append(_secret).append('"');
else
buf.append("\n\tSecret Required : ").append(_secretRequired);
buf.append("\n\tAuth Type : ");
if (_authType > 0)
buf.append(_authType);
@ -262,10 +264,12 @@ public class BlindData {
buf.append("none");
if (_authKey != null)
buf.append("\n\tAuth Key : ").append(_authKey);
if (_dest != null)
buf.append("\n\tDestination: ").append(_dest);
else
buf.append("\n\tDestination: unknown");
buf.append("\n\tAuth Required : ").append(_authRequired);
if (_dest != null)
buf.append("\n\tDestination : ").append(_dest);
else
buf.append("\n\tDestination : unknown");
buf.append("\n\tB32 : ").append(toBase32());
buf.append(']');
return buf.toString();

View File

@ -99,7 +99,8 @@ class LookupDestJob extends JobImpl {
}
h = bd.getBlindedHash();
if (_log.shouldDebug())
_log.debug("Converting name lookup " + name + " to blinded " + h);
_log.debug("Converting name lookup " + name + " to blinded " + h +
" using BlindData:\n" + bd);
name = null;
} catch (RuntimeException re) {
if (_log.shouldWarn())