lib/skylight/cli/doctor.rb in skylight-2.0.0.beta2 vs lib/skylight/cli/doctor.rb in skylight-2.0.0.beta3

- old
+ new

@@ -9,11 +9,11 @@ def check_ssl say "Checking SSL" http = Util::HTTP.new(config) indent do - req = http.get("/", "Accept" => "text/html") + req = http.get("/status") if req.success? say "OK", :green else encountered_error! if req.exception.is_a?(Util::HTTP::StartError) && req.exception.original.is_a?(OpenSSL::SSL::SSLError) @@ -111,10 +111,10 @@ logger = Logger.new("/dev/null") # Rely on `say` in the formatter instead # Log everything logger.level = Logger::DEBUG # Remove excess formatting logger.formatter = proc { |severity, datetime, progname, msg| - msg = msg.sub("[SKYLIGHT] [#{Skylight::Core::VERSION}] ", '') + msg = msg.sub("[SKYLIGHT] [#{Skylight::VERSION}] ", '') say "#{severity} - #{msg}" # Definitely non-standard } config.logger = logger config.set(:'daemon.lazy_start', false)