diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2024-01-12 15:52:28 +0100 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2024-01-12 16:26:17 +0100 |
commit | c003562120c193c296ac754b4bb8cff02bbbe4dc (patch) | |
tree | 2220dbe17c09d01a5f0067ab29ca58e56b0c4cac /doc | |
parent | 3ba8de1b704d590fa4e1975620bd21d830d11666 (diff) |
doc: Add missing backtick in developer notes logging section
Also fix some minor punctuation error in the section.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/developer-notes.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/developer-notes.md b/doc/developer-notes.md index 1d670d39f1..ece36cb088 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -739,25 +739,25 @@ logging messages. They should be used as follows: Note that `LogPrint(BCLog::CATEGORY, fmt, params...)` is a deprecated alias for `LogDebug`. -- `LogInfo(fmt, params...)` should only be used rarely, eg for startup +- `LogInfo(fmt, params...)` should only be used rarely, e.g. for startup messages or for infrequent and important events such as a new block tip being found or a new outbound connection being made. These log messages - are unconditional so care must be taken that they can't be used by an + are unconditional, so care must be taken that they can't be used by an attacker to fill up storage. Note that `LogPrintf(fmt, params...)` is a deprecated alias for `LogInfo`. - `LogError(fmt, params...)` should be used in place of `LogInfo` for severe problems that require the node (or a subsystem) to shut down - entirely (eg, insufficient storage space). + entirely (e.g., insufficient storage space). - `LogWarning(fmt, params...)` should be used in place of `LogInfo` for severe problems that the node admin should address, but are not - severe enough to warrant shutting down the node (eg, system time + severe enough to warrant shutting down the node (e.g., system time appears to be wrong, unknown soft fork appears to have activated). -- `LogTrace(BCLog::CATEGORY, fmt, params...) should be used in place of +- `LogTrace(BCLog::CATEGORY, fmt, params...)` should be used in place of `LogDebug` for log messages that would be unusable on a production - system, eg due to being too noisy in normal use, or too resource + system, e.g. due to being too noisy in normal use, or too resource intensive to process. These will be logged if the startup options `-debug=category -loglevel=category:trace` or `-debug=1 -loglevel=trace` are selected. |