Merge pull request #3067 from jekyll/specify-log-level

This commit is contained in:
Parker Moore 2014-11-06 12:05:07 -08:00
commit e11fb4d427
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ module Jekyll
#
# Returns the LogAdapter instance.
def logger
@logger ||= LogAdapter.new(Stevenson.new)
@logger ||= LogAdapter.new(Stevenson.new, (ENV["JEKYLL_LOG_LEVEL"] || :info).to_sym)
end
# Public: Set the log writer.

View File

@ -47,7 +47,7 @@ module Jekyll
def excluded?(entry)
excluded = glob_include?(site.exclude, relative_to_source(entry))
Jekyll.logger.debug "excluded?(#{relative_to_source(entry)}) ==> #{excluded}"
Jekyll.logger.debug "EntryFilter:", "excluded?(#{relative_to_source(entry)}) ==> #{excluded}"
excluded
end