Changeset 1130

Show
Ignore:
Timestamp:
12/24/07 04:33:06 (10 months ago)
Author:
wayneesegu..@gmail.com
Message:

Added timestamp to & elaborated on the connection message.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/merb_sequel/lib/merb/orms/sequel/connection.rb

    r1095 r1130  
    2929 
    3030          if File.exists?(config_file) 
    31             puts "Connecting to database..."             
     31            puts "#{Time.now.httpdate}: Connecting to the '#{config[:adapter]}' database '#{config[:hosts]}' ..." 
    3232            connection = ::Sequel.connect(config_options(config)) 
    3333            MERB_LOGGER.error("Connection Error: #{e}") unless connection 
    3434          else 
    3535            copy_sample_config 
    36             puts "No database.yml file found in #{MERB_ROOT}/config." 
     36            puts "#{Time.now.httpdate}: No database.yml file found in #{MERB_ROOT}/config." 
    3737            puts "A sample file was created called config/database.sample.yml for you to copy and edit." 
    3838            exit(1)