upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/nostr.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 05:31:22 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 05:31:22 +0000
commit2661de141e46dadfb2903bb12e72dc87c5a64375 (patch)
tree73f5492187a1da4b362463834983ad767f105306 /src/nostr.cpp
parentae1c6a7b49d9b4f8cf7218c0baec84f348eb5ef6 (diff)
log: demote the four lines that were 90% of debug.log behind /debugrelay
A 13-hour production capture was ~71% "sending: tx", ~16% "Nostr: discovered .btf peer", ~5% "Relaying wtx", and ~43% of raw lines were CBlock/CTransaction dumps -- all already under -debug, which operators run permanently, so -debug was useless as a filter. The category mechanism gains a verbose tier: "relay" and "nostrdiscovery" are accepted only with the new /debugrelay flag (which implies /debug); everything else keeps its current gate. Demoted, with message text unchanged for anyone grepping it: net.h "sending: tx (N bytes)" (BeginMessage/EndMessage/ AbortMessage all pick the category from the command, so no orphaned "(N bytes)" fragments leak into a plain -debug log) main.cpp "Relaying wtx", "received block:" + CBlock::print, and the BitcoinMiner block dump nostr.cpp "Nostr: discovered .btf peer" -> "nostrdiscovery" Pool/worker/payout, [payout], BLOCK ORPHANED/ACCEPTED and share flow lines are untouched. Because LogPrint dedup keys on category, demoted lines also keep their burst collapse under /debugrelay. Closes #35
Diffstat (limited to 'src/nostr.cpp')
-rw-r--r--src/nostr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nostr.cpp b/src/nostr.cpp
index e2d839c..9bbf74e 100644
--- a/src/nostr.cpp
+++ b/src/nostr.cpp
@@ -1440,7 +1440,7 @@ static bool SeedFromRelay(CNostrKey& key, const string& relay)
1440 else if (createdAt > it->second) it->second = createdAt; // refresh 1440 else if (createdAt > it->second) it->second = createdAt; // refresh
1441 } 1441 }
1442 if (fNew && fDebug) 1442 if (fNew && fDebug)
1443 LogPrint("nostr", "Nostr: discovered .btf peer %s\n", peerAddr.c_str()); 1443 LogPrint("nostrdiscovery", "Nostr: discovered .btf peer %s\n", peerAddr.c_str());
1444 if (++nPeers > 500) break; 1444 if (++nPeers > 500) break;
1445 } 1445 }
1446 else if (type == "EOSE") 1446 else if (type == "EOSE")