./lib/le/host.rb in le-1.9.2 vs ./lib/le/host.rb in le-2.0
- old
+ new
@@ -11,13 +11,13 @@
module Host
# Creates a new Logentries host, based on a user-key and location of destination file on logentries,
# both must be provided correctly for a connection to be made.
- def self.new(key, location, local)
+ def self.new(token, local)
- Le::Host::HTTPS.new(key, location, local)
+ Le::Host::HTTPS.new(token, local)
end
module HelperMethods
@@ -28,19 +28,18 @@
end
end
def format_message(msg_in, severity)
msg_in = msg_in.lstrip
-
msg_out = ""
msg_out << "severity=#{severity}, "
case msg_in
when String
msg_out << msg_in
else
- msg_out << msg_in.inspect
- end
+ msg_out << msg_in.inspect
+ end
msg_out
end
end
end
end