Debug writing files during the build process (#6696)

Merge pull request 6696
This commit is contained in:
ashmaroli 2018-03-19 19:00:41 +05:30 committed by jekyllbot
parent 78684aa18a
commit 8595c67df0
3 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,7 @@ module Jekyll
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
Jekyll.logger.debug "Writing:", path
File.write(path, output, :mode => "wb")
Jekyll::Hooks.trigger hook_owner, :post_write, self
end

View File

@ -239,6 +239,7 @@ module Jekyll
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
Jekyll.logger.debug "Writing:", path
File.write(path, output, :mode => "wb")
trigger_hooks(:post_write)

View File

@ -120,6 +120,7 @@ module Jekyll
# Returns nothing.
def write_metadata
unless disabled?
Jekyll.logger.debug "Writing Metadata:", ".jekyll-metadata"
File.binwrite(metadata_file, Marshal.dump(metadata))
end
end