lib/ditty/db.rb in ditty-0.10.2 vs lib/ditty/db.rb in ditty-0.11.1

- old
+ new

@@ -6,11 +6,11 @@ require 'active_support/core_ext/object/blank' pool_timeout = (ENV['DB_POOL_TIMEOUT'] || 5).to_i if defined? DB - ::Ditty::Services::Logger.warn 'Database connection already set up' + ::Ditty::Services::Logger.warn '** Database connection already set up **' elsif ENV['DATABASE_URL'].blank? == false # Delete DATABASE_URL from the environment, so it isn't accidently # passed to subprocesses. DATABASE_URL may contain passwords. DB = Sequel.connect( ENV['RACK_ENV'] == 'production' ? ENV.delete('DATABASE_URL') : ENV['DATABASE_URL'], @@ -27,7 +27,7 @@ Sequel::Model.plugin :string_stripper Sequel::Model.plugin :timestamps, update_on_create: true Sequel::Model.plugin :update_or_create Sequel::Model.plugin :validation_helpers else - ::Ditty::Services::Logger.error 'No database connection set up' + ::Ditty::Services::Logger.error '*** NO DATABASE CONNECTION SET UP ***' end