lib/semantic_logger/appender/udp.rb in semantic_logger-4.6.1 vs lib/semantic_logger/appender/udp.rb in semantic_logger-4.7.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'socket'
+require "socket"
module SemanticLogger
module Appender
# UDP log appender.
#
# Write log messages to UDP.
@@ -72,10 +72,10 @@
# After forking an active process call #reopen to re-open
# open the handles to resources
def reopen
close
@socket = UDPSocket.new
- host, port = server.split(':')
+ host, port = server.split(":")
@socket.connect(host, port.to_i)
end
# Write the log using the specified protocol and server.
def log(log)