./lib/le/host/http.rb in le-2.2.1 vs ./lib/le/host/http.rb in le-2.2.2
- old
+ new
@@ -43,13 +43,15 @@
include Le::Host::InstanceMethods
attr_accessor :token, :queue, :started, :thread, :conn, :local, :debug, :ssl
def initialize(token, local, debug, ssl)
- if defined?(Rails)
- @logger_console = Logger.new("log/#{Rails.env}.log")
- else
- @logger_console = Logger.new(STDOUT)
+ if local
+ if defined?(Rails)
+ @logger_console = Logger.new("log/#{Rails.env}.log")
+ else
+ @logger_console = Logger.new(STDOUT)
+ end
end
@token = token
@local = local
@debug = debug
@ssl = ssl