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)
|
def write(dest)
|
||||||
path = destination(dest)
|
path = destination(dest)
|
||||||
FileUtils.mkdir_p(File.dirname(path))
|
FileUtils.mkdir_p(File.dirname(path))
|
||||||
|
Jekyll.logger.debug "Writing:", path
|
||||||
File.write(path, output, :mode => "wb")
|
File.write(path, output, :mode => "wb")
|
||||||
Jekyll::Hooks.trigger hook_owner, :post_write, self
|
Jekyll::Hooks.trigger hook_owner, :post_write, self
|
||||||
end
|
end
|
||||||
|
|
|
@ -239,6 +239,7 @@ module Jekyll
|
||||||
def write(dest)
|
def write(dest)
|
||||||
path = destination(dest)
|
path = destination(dest)
|
||||||
FileUtils.mkdir_p(File.dirname(path))
|
FileUtils.mkdir_p(File.dirname(path))
|
||||||
|
Jekyll.logger.debug "Writing:", path
|
||||||
File.write(path, output, :mode => "wb")
|
File.write(path, output, :mode => "wb")
|
||||||
|
|
||||||
trigger_hooks(:post_write)
|
trigger_hooks(:post_write)
|
||||||
|
|
|
@ -120,6 +120,7 @@ module Jekyll
|
||||||
# Returns nothing.
|
# Returns nothing.
|
||||||
def write_metadata
|
def write_metadata
|
||||||
unless disabled?
|
unless disabled?
|
||||||
|
Jekyll.logger.debug "Writing Metadata:", ".jekyll-metadata"
|
||||||
File.binwrite(metadata_file, Marshal.dump(metadata))
|
File.binwrite(metadata_file, Marshal.dump(metadata))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue