Skip to content

log low-level network messages only when fDebug is set - #520

Merged
lost-tty merged 2 commits into
bitcoin:masterfrom
lost-tty:less-logging
Sep 19, 2011
Merged

lost-tty merged 2 commits into
bitcoin:masterfrom
lost-tty:less-logging

Conversation

@lost-tty

Copy link
Copy Markdown

This patch wraps three debug messages (sending, received and got inventory) in if (fDebug) {...}.

I analyzed debug.log on a few long-running bitcoin nodes and noticed > 80% of debug.log is composed of those three messages. Thus this patch should greatly reduce debug.log size and disk I/O.

  • sending is triggered whenever a low-level message is sent (i.e. sending: inv (37 bytes)).
  • received is triggered whenever a message is received (i.e. received: inv (37 bytes)).
  • got inventory is triggered when an `inv``-message is received.

@jgarzik

jgarzik commented Sep 17, 2011

Copy link
Copy Markdown
Contributor

ACK

1 similar comment
@gavinandresen

Copy link
Copy Markdown
Contributor

ACK

lost-tty pushed a commit that referenced this pull request Sep 19, 2011
log low-level network messages only when fDebug is set
@lost-tty
lost-tty merged commit 2d294e0 into bitcoin:master Sep 19, 2011
coblee referenced this pull request in litecoin-project/litecoin Jul 17, 2012
log low-level network messages only when fDebug is set
dexX7 added a commit to dexX7/bitcoin that referenced this pull request Dec 16, 2017
…ter architecture

316fe33 Move valid transaction retrival into DBTxList (dexX7)
107070f Move file based persistence into seperate file (dexX7)
4fb30fd Remove unused includes in omnicore (dexX7)
f7ac573 Rename fees to dbfees (dexX7)
d03860a Move and group globals and add comments (dexX7)
555ca38 Move CMPTxList into seperate file (dexX7)
0e07db9 Move CMPTradeList into seperate file (dexX7)
3052889 Rename mbstring to rpcmbstring (dexX7)
7dcab04 Rename wallettxs to walletutils (dexX7)
7d43821 Rename fetchwallettxs to walletfetchtxs (dexX7)
4bddfe3 Remove unused from wallet cache (dexX7)
2d0486d Move WalletTxBuilder into seperate file (dexX7)
7fad0ff Move functions in omnicore header (dexX7)
f341a7e Group parsing related functions in new parsing file (dexX7)
c2dfca4 Move CMPSPInfo into seperate file (dexX7)
40c8c53 Move CMPSTOList into seperate file (dexX7)
e55aab7 Move COmniTransactionDB into seperate file (dexX7)
c2af72b Rename persistence to dbbase (dexX7)
kallewoof pushed a commit to kallewoof/bitcoin that referenced this pull request Oct 4, 2019
…quid, find cookie

5273ed5 Default to mainnet cookie for liquidv1 (Gregory Sanders)
8ea52ee Default to elementsregtest (Gregory Sanders)

Pull request description:

  Cookie defaults looking in `regtest` directory currently.

Tree-SHA512: df8e384f12c84e7adf86edcc2d4a96432187ce58b76f19ea347b911988f55177efebcd8f5a5986acfe19044535b27ad896ec3f75a273bae24826e33ba58f40e0
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jul 17, 2020
rajarshimaitra pushed a commit to rajarshimaitra/bitcoin that referenced this pull request Aug 5, 2021
- commas
- controll -> control
- rephrasing
- additions
- cancle -> cancel
- fullfill -> fulfill 
- etc
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants