Debug writing files during the build process (#6696)
Merge pull request 6696
This commit is contained in:
parent
78684aa18a
commit
8595c67df0
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue