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); buf.append("\n\tBlinded Hash : ").append(_blindHash);
if (_secret != null) if (_secret != null)
buf.append("\n\tSecret : \"").append(_secret).append('"'); buf.append("\n\tSecret : \"").append(_secret).append('"');
else
buf.append("\n\tSecret Required : ").append(_secretRequired);
buf.append("\n\tAuth Type : "); buf.append("\n\tAuth Type : ");
if (_authType > 0) if (_authType > 0)
buf.append(_authType); buf.append(_authType);
@ -262,6 +264,8 @@ public class BlindData {
buf.append("none"); buf.append("none");
if (_authKey != null) if (_authKey != null)
buf.append("\n\tAuth Key : ").append(_authKey); buf.append("\n\tAuth Key : ").append(_authKey);
else
buf.append("\n\tAuth Required : ").append(_authRequired);
if (_dest != null) if (_dest != null)
buf.append("\n\tDestination : ").append(_dest); buf.append("\n\tDestination : ").append(_dest);
else else

View File

@ -99,7 +99,8 @@ class LookupDestJob extends JobImpl {
} }
h = bd.getBlindedHash(); h = bd.getBlindedHash();
if (_log.shouldDebug()) 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; name = null;
} catch (RuntimeException re) { } catch (RuntimeException re) {
if (_log.shouldWarn()) if (_log.shouldWarn())