Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

silence misleading debug messages when not auto-compiling

  • Loading branch information...
commit 06494e7ff7d3f1c580df005c1349afb5819c8b6e 1 parent 749c382
@jodell jodell authored committed
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/barista.rb
  2. +2 −2 lib/barista/filter.rb
View
2  lib/barista.rb
@@ -183,7 +183,7 @@ def compile_file!(file, force = false, silence_error = false)
end
def compile_all!(force = false, silence_error = true)
- debug "Compiling all coffeescripts"
+ debug "Compiling all coffeescripts" if Barista.auto_compile?
Barista.invoke_hook :before_full_compilation
Framework.exposed_coffeescripts.each do |coffeescript|
Compiler.autocompile_file coffeescript, force, silence_error
View
4 lib/barista/filter.rb
@@ -10,11 +10,11 @@ def call(env)
end
def _call(env)
- Barista.debug 'Compiling all scripts for barista'
+ Barista.debug 'Compiling all scripts for barista' if Barista.auto_compile?
Barista.compile_all!
# Now, actually call the app.
@app.call env
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.