lib/semantic_logger/appender/syslog.rb in semantic_logger-4.7.4 vs lib/semantic_logger/appender/syslog.rb in semantic_logger-4.8.0
- old
+ new
@@ -55,11 +55,11 @@
# tcp_client: [Hash]
# Default: {}
# Only used with the TCP protocol.
# Specify custom parameters to pass into Net::TCPClient.new
# For a list of options see the net_tcp_client documentation:
- # https://github.com/rocketjob/net_tcp_client/blob/master/lib/net/tcp_client/tcp_client.rb
+ # https://github.com/reidmorrison/net_tcp_client/blob/master/lib/net/tcp_client/tcp_client.rb
#
# level: [:trace | :debug | :info | :warn | :error | :fatal]
# Override the log level for this appender.
# Default: SemanticLogger.default_level
#
@@ -149,18 +149,20 @@
# The syslog_protocol gem is required when logging over TCP or UDP.
if %i[tcp udp].include?(@protocol)
begin
require "syslog_protocol"
rescue LoadError
- raise LoadError, "Missing gem: syslog_protocol. This gem is required when logging over TCP or UDP. To fix this error: gem install syslog_protocol"
+ raise LoadError,
+ "Missing gem: syslog_protocol. This gem is required when logging over TCP or UDP. To fix this error: gem install syslog_protocol"
end
# The net_tcp_client gem is required when logging over TCP.
if protocol == :tcp
begin
require "net/tcp_client"
rescue LoadError
- raise LoadError, "Missing gem: net_tcp_client. This gem is required when logging over TCP. To fix this error: gem install net_tcp_client"
+ raise LoadError,
+ "Missing gem: net_tcp_client. This gem is required when logging over TCP. To fix this error: gem install net_tcp_client"
end
end
end
super(**args, &block)