This repository has been 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.6k
Allow adding a prefix to the informant #6174
Merged
Merged
Changes from 30 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6c3a2c0
Initial commit
cecton 9c2e726
Add a Service Configuration's field + adapt informant + provide means…
cecton c966d4b
CLEANUP
cecton a3c306e
fix tests
cecton d3c1d52
fixed bad path to object
cecton cd86c58
Change OutputFormat enum to struct
cecton 6c0029b
Add informant_prefix to builder and service
cecton ed89283
Revert "Change OutputFormat enum to struct"
cecton ad18c29
Revert "fix tests"
cecton ff258dc
Revert "Add a Service Configuration's field + adapt informant + provi…
cecton f5cf997
Implementation using the ServiceBuilder
cecton 1b02761
reduce line length
cecton b88ed95
Merge commit f85fabd753c40041edcaac487f6f1ce259e8d11b (no conflict)
cecton b81f8ff
fix line width again
cecton a04e788
WIP
cecton cb8e402
WIP
cecton 5dceb40
WIP
cecton bf7e144
use struct instead of enum
cecton d8daabb
WIP
cecton 4133e3c
Update client/service/src/lib.rs
cecton 23d775e
improve doc
cecton f006ccf
Update client/service/src/builder.rs
cecton b5dd8d8
Update client/service/src/builder.rs
cecton e32866a
change code
cecton 1b38e33
Update client/informant/src/lib.rs
cecton 5523518
enable_color
cecton 36c4148
reorg log
cecton 9728c25
remove macro
cecton 036a1ea
Removed builder for informant prefix
cecton f494058
fix doc
cecton 6ba7627
Update client/informant/src/lib.rs
cecton c1ec56a
Update client/informant/src/lib.rs
cecton d334904
Update client/informant/src/lib.rs
cecton f73afa4
Update client/informant/src/lib.rs
cecton 89a9c2b
Update client/service/src/builder.rs
cecton a82f2cb
Update client/service/src/builder.rs
cecton f75b06a
Update client/service/src/builder.rs
cecton f1bcacb
Merge commit cc5b3a63fe5adb5100436ff43d5260a2ea18d893 (no conflict)
cecton 38a4f27
Merge commit e287915eb37928491adbf4666e764ea0be5ac21a (conflicts)
cecton bb7c7c2
Merge commit feb334d87773331c23ef6560a55f43fcb5ef62a8 (no conflict)
cecton 89b5df8
Merge branch 'cecton-informant-prefix' of github.com:paritytech/subst…
cecton 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 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 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should here also again should be made aware that this does not uses a whitespace in front of. While I'm still not sure if we should not add the whitespace by default for a prefix.
Another point, please create the following:
This will make it possible for the user to supply a style as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not add the whitespace imo. People might want to use something like
[mynode]
without whitespace in front of the log. But as a counter argument I would also add that the emoji uses a whitespace already so it would be inconsistent. (But I personally find the emojis annoying in logs.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the style is not really useful as people can put it in the String already. Do you really want it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point