lib/falcon/middleware/verbose.rb in falcon-0.38.0 vs lib/falcon/middleware/verbose.rb in falcon-0.38.1

- old
+ new

@@ -18,20 +18,20 @@ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -require 'async/logger' +require 'console' require 'async/http/statistics' module Falcon module Middleware # A HTTP middleware for logging requests and responses. class Verbose < Protocol::HTTP::Middleware # Initialize the verbose middleware. # @parameter app [Protocol::HTTP::Middleware] The middleware to wrap. # @parameter logger [Console::Logger] The logger to use. - def initialize(app, logger = Async.logger) + def initialize(app, logger = Console.logger) super(app) @logger = logger end