-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR implements lazy instantiation of filters through a closure - which also leads to the ability to pass the server_yaml::Value for the config of the filter, which was a nice side effect. To prove the lazy eval and config passing was working, this also added the ability to pass an "id" value to the DebugFilter, such that you could implement several of them in a Filter configuration in between other filters, and be able to identify which log statement is which step. This also led to finding multiple places in which an Arc was being used, but only the guarantees of a Box where actually needed, so this was also switched out. An integration test for the DebugFilter is still incoming. Work on #1
- Loading branch information
1 parent
5f0db6e
commit 6d1f372
Showing
9 changed files
with
155 additions
and
62 deletions.
There are no files selected for viewing
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.