only use logging if there's a log folder in the current directory

pull/1186/head
Martin Linkhorst 12 years ago
parent 27d7b0d58e
commit 37007d8388
  1. 2
      config/initializers/bullet.rb

@ -3,7 +3,7 @@ if defined?(Bullet) && Rails.env.development?
config.after_initialize do
Bullet.enable = true
# Bullet.alert = true
Bullet.bullet_logger = true
Bullet.bullet_logger = true if File.directory?('log') # fails if run from an engine
Bullet.console = true
# Bullet.growl = true
Bullet.rails_logger = true

Loading…
Cancel
Save