Permalink
Browse files

silence misleading debug messages when not auto-compiling

  • Loading branch information...
1 parent 749c382 commit 06494e7ff7d3f1c580df005c1349afb5819c8b6e @jodell jodell committed with Mar 23, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/barista.rb
  2. +2 −2 lib/barista/filter.rb
View
@@ -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
@@ -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

0 comments on commit 06494e7

Please sign in to comment.