Added loggen info if init settings does not find database

This commit is contained in:
Priit Tark 2015-03-20 12:32:02 +02:00
parent cb3b2e39fc
commit eb3a0dd629

View file

@ -1,8 +1,8 @@
# otherwise rake not working 100%
begin
con = ActiveRecord::Base.connection
rescue ActiveRecord::NoDatabaseError
# for running rake tasks, no output
rescue ActiveRecord::NoDatabaseError => e
logger.info "Init settings didn't find database: #{e}"
end
if con.present? && con.table_exists?('settings')