Skip to content

Commit

Permalink
Fix spelling of paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowens authored Sep 4, 2020
1 parent bc7acbb commit 0639618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sinatra-contrib/lib/sinatra/quiet_logger.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module Sinatra
# = Sinatra::QuietLogger
#
# QuietLogger extension allows you to define pathes excluded
# QuietLogger extension allows you to define paths excluded
# from logging using the +quiet_logger_prefixes+ setting.
# It is inspired from rails quiet_logger, but handles multiple pathes.
# It is inspired from rails quiet_logger, but handles multiple paths.
#
# == Usage
#
Expand All @@ -22,7 +22,7 @@ module QuietLogger

def self.registered(app)
quiet_logger_prefixes = app.settings.quiet_logger_prefixes.join('|') rescue ''
return warn('You need to specify the pathes you wish to exclude from logging via `set :quiet_logger_prefixes, %w(images css fonts)`') if quiet_logger_prefixes.empty?
return warn('You need to specify the paths you wish to exclude from logging via `set :quiet_logger_prefixes, %w(images css fonts)`') if quiet_logger_prefixes.empty?
const_set('QUIET_LOGGER_REGEX', %r(\A/{0,2}(?:#{quiet_logger_prefixes})))
::Rack::CommonLogger.prepend(
::Module.new do
Expand Down

0 comments on commit 0639618

Please sign in to comment.