mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
16 lines
370 B
Crystal
16 lines
370 B
Crystal
require "./spec_helper"
|
|
|
|
describe "Logger" do
|
|
it "creates a STDOUT handler by default" do
|
|
config = Kemal.config
|
|
logger = Kemal::Logger.new
|
|
logger.handler.should be_a IO
|
|
end
|
|
|
|
it "creates a file handler in production" do
|
|
config = Kemal.config
|
|
config.env = "production"
|
|
logger = Kemal::Logger.new
|
|
logger.handler.should be_a File
|
|
end
|
|
end
|