lib/jekyll/assets/hooks/logger.rb in jekyll-assets-2.1.3 vs lib/jekyll/assets/hooks/logger.rb in jekyll-assets-2.2.0
- old
+ new
@@ -1,7 +1,11 @@
+# ----------------------------------------------------------------------------
# Frozen-string-literal: true
-# Copyright: 2012-2015 - MIT License
+# Copyright: 2012 - 2016 - MIT License
# Encoding: utf-8
+# ----------------------------------------------------------------------------
Jekyll::Assets::Hook.register :env, :init do
- self.logger = Jekyll::Assets::Logger.new
+ if jekyll.config["verbose"]
+ self.logger = Jekyll::Assets::Logger.new
+ end
end