Skip to content

Commit

Permalink
Adjust Peer initialization log level
Browse files Browse the repository at this point in the history
Also do not log wallet-context content.
  • Loading branch information
dpad85 committed Sep 28, 2023
1 parent 6e0af72 commit 5bd5657
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ abstract class AppContext : Application() {
try {
if (response.isSuccessful && body != null) {
val json = JSONObject(body.string()).getJSONObject(BuildConfig.CHAIN)
log.debug("fetched context={}", json.toString(2))
handleWalletContext(json)
Prefs.saveWalletContext(context, json)
} else {
Expand Down Expand Up @@ -183,7 +182,6 @@ abstract class AppContext : Application() {
try {
if (response.isSuccessful && body != null) {
val json = JSONObject(body.string()).getJSONObject(BuildConfig.CHAIN)
log.debug("fetched context={}", json.toString(2))
handleWalletContext(json)
Prefs.saveWalletContext(context, json)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class PeerManager(
initTlvs = initTlvs.addOrUpdate(InitTlv.PhoenixAndroidLegacyNodeId(legacyNodeId = legacyKey.publicKey, signature = signature))
}

logger.debug { "instantiating peer with walletParams=$walletParams initTlvs=$initTlvs startupParams=$startupParams" }
logger.info { "instantiating peer with:\n walletParams=$walletParams\n initTlvs=$initTlvs\n startupParams=$startupParams" }

val peer = Peer(
initTlvStream = initTlvs,
Expand Down

0 comments on commit 5bd5657

Please sign in to comment.