mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Start decoupling logger
This commit is contained in:
parent
ffc3d6d224
commit
850af8819e
6 changed files with 15 additions and 12 deletions
|
@ -28,4 +28,10 @@ describe "Config" do
|
|||
config.add_handler CustomTestHandler.new
|
||||
config.handlers.size.should eq(1)
|
||||
end
|
||||
|
||||
it "sets a custom logger" do
|
||||
config = Kemal::Config::INSTANCE
|
||||
config.logger = CustomTestHandler.new
|
||||
config.handlers.first.should be_a(CustomTestHandler)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue