This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
RPC to allow setting the log filter #7474
Merged
Merged
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
0c480ef
Add filter reload handle
mattrutherford 767f61a
add RPC, move logging module from cli to tracing
mattrutherford 5643e7e
remove dup fn
mattrutherford cd8815e
working example
mattrutherford eb429e1
Update client/rpc-api/src/system/mod.rs
dvdplm 884c1db
Prefer "set" to "reload"
dvdplm 57ae457
Re-enable the commented out features of the logger
dvdplm 297e75f
Merge branch 'master' into log-reloading
dvdplm 7960ebb
Remove duplicate code
dvdplm 8ca1301
cleanup
dvdplm 2b11d45
unneeded lvar
dvdplm 86ad90a
Merge branch 'master' into log-reloading
dvdplm 1406207
Bump to latest patch release
dvdplm 2d8dfa0
Add new CLI option to disable log filter reloading,
mattrutherford 992e69c
Merge branch 'log-reloading' of github.com:paritytech/substrate into …
mattrutherford 65ad10d
Apply suggestions from code review
mattrutherford d9a815a
Applied suggestions from reviews
mattrutherford f2c57fb
Fix calls to init_logger()
dvdplm 1906cc9
Handle errors when parsing logging directives
dvdplm 714eb48
Deny `system_setLogFilter` RPC by default
dvdplm 3d7d458
One more time
dvdplm d82a74a
Don't ignore parse errors for log directives set via CLI or RPC
mattrutherford 437295b
Merge branch 'log-reloading' of github.com:paritytech/substrate into …
mattrutherford ae4a0ac
Improve docs
mattrutherford f81577f
Apply suggestions from code review
mattrutherford b18002d
Update client/cli/src/config.rs
mattrutherford 57bc9ac
Merge branch 'master' into log-reloading
mattrutherford 1e8b115
fix merge errors
mattrutherford dbd3a12
include default directives with system_setLogFilter RPC,
mattrutherford 8f4810f
Merge branch 'log-reloading' of github.com:paritytech/substrate into …
mattrutherford fd82f68
docs etc...
mattrutherford 89f615d
update test
mattrutherford 65f58b7
refactor: rename fn
mattrutherford 4c51a08
Add a test for system_set_log_filter – NOTE: the code should likely c…
dvdplm 04e1786
Update client/cli/src/lib.rs
dvdplm c0996c5
Address review grumbles
dvdplm 68f208e
Merge branch 'log-reloading' of github.com:paritytech/substrate into …
dvdplm cd51835
Add doc note on panicking behaviour
dvdplm f41b93f
print all invalid directives before panic
mattrutherford 23938a4
change RPCs to: addLogFilter and resetLogFilter
mattrutherford f90443a
make CLI log directives default
mattrutherford 37565c1
add comments
mattrutherford d827037
restore previous behaviour to panic when hard-coded directives are in…
mattrutherford 08c8753
change/refactor directive parsing
mattrutherford 59ad63e
fix line width
mattrutherford 2d96c18
add test for log filter reloading
mattrutherford 3d49c2a
Apply suggestions from code review
mattrutherford 098e730
finish up suggestions from code review
mattrutherford b5d4378
improve test
mattrutherford 5da34f0
change expect message
mattrutherford 728ed21
change fn name
mattrutherford 990c0c9
Apply suggestions from code review
mattrutherford 1a7cf5c
Apply suggestions from code review
mattrutherford b941066
add docs, remove unused fn
mattrutherford 1207ef7
propagate Err on invalid log directive
mattrutherford 042e4fe
Merge branch 'master' into log-reloading
mattrutherford 397b09c
Update tracing-subscriber version
mattrutherford 0489d8a
Improve docs for `disable_log_reloading` CLI param
mattrutherford 5baa021
Merge branch 'master' into log-reloading
mattrutherford File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.