Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes changes primarily focused on improving the logging functionality in the codebase. The main change is the addition of a
scope
parameter to thelogger
function, which allows for more specific logging by providing context on where the log is coming from. Thisscope
is now being utilized in several files to provide more detailed logging.Key changes:
src/lib/logger.ts
: Thelogger
function now accepts an optionalscope
parameter. Ifscope
is provided, the logger will return a child logger with thescope
included. [1] [2]src/lib/DataProviderManager.ts
,src/lib/util.ts
,src/providers/bitcoind.ts
,src/providers/esplora.ts
,src/providers/mempool.ts
,src/server.tsx
: Thelogger
function is now called with theLOGLEVEL
and ascope
string that provides context for the logging. This allows for more specific and detailed logging. [1] [2] [3] [4] [5] [6]