~siegfriedehret/beulogue

f2e949471266ac542d23b3790a1d92cb46de0df2 — Siegfried Ehret 2 years ago a8ca2f1
:fire: clean up some debug logs
2 files changed, 6 insertions(+), 6 deletions(-)

M src/objects/renderer.cr
M src/pipeline/pipeline.cr
M src/objects/renderer.cr => src/objects/renderer.cr +2 -2
@@ 37,7 37,7 @@ module Beulogue
    def renderList(content : Hash)
      model = @baseModel.merge(content)

      Log.debug { "Writing list for lang #{model["language"]}: #{model}" }
      Log.debug { "Writing list for lang #{model["language"]}" }

      html = @list.render model
    end


@@ 45,7 45,7 @@ module Beulogue
    def renderPage(content : Hash)
      model = @baseModel.merge(content)

      Log.debug { "Writing page: #{model}" }
      Log.debug { "Writing page: #{model["multilang"]}" }

      html = @page.render model
    end

M src/pipeline/pipeline.cr => src/pipeline/pipeline.cr +4 -4
@@ 33,7 33,7 @@ module Beulogue
      def runSingleLanguage(files : Array(Path))
        lang = @config.languages[0]

        Log.debug { "Pages for lang #{lang}, #{files}" }
        Log.debug { "Pages for lang #{lang}, #{files.size}" }
        multilang = BeulogueMultilang.new

        elapsed_time = Time.measure do


@@ 56,7 56,7 @@ module Beulogue
          content = Beulogue::Pipeline::Converter.convert(f, "", lang, @wd, @config.dev_mode)
          Beulogue::Pipeline::Page.write(@renderer, content, multilang)
        rescue ex
          Log.error { "Failed to process #{f}" }
          Log.error { "Failed to process #{f}: #{ex.message}" }
          Log.debug { ex.message }
          nil
        end


@@ 75,7 75,7 @@ module Beulogue
              begin
                content = Beulogue::Pipeline::Converter.convert(f, lang, lang, @wd, @config.dev_mode)
              rescue ex
                Log.error { "Failed to process #{f}" }
                Log.error { "Failed to process #{f}: #{ex.message}" }
                Log.debug { ex.message }
              end



@@ 92,7 92,7 @@ module Beulogue
        end

        contentsPerLanguage.each do |lang, contents|
          Log.debug { "Pages for lang #{lang}, #{contents}" }
          Log.debug { "Pages for lang #{lang}, #{contents.size}" }

          elapsed_time = Time.measure do
            pages = contents.map do |content|