lib/gallerist/app/base_extensions.rb
# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2015-2016, Sebastian Staudt
module Gallerist::App::BaseExtensions
def setup_default_middleware(builder)
builder.use Sinatra::ExtendedRack
builder.use Sinatra::ShowExceptions if development?
builder.use Gallerist::RaiseWarmupExceptions
Gallerist::Logging.prepare
Gallerist::Logging.level = logging
builder.use Sinatra::CommonLogger, Gallerist::Logging.access_logger
builder.use Rack::Logger, logging
end
end