lib/semantic_logger/appender/splunk.rb in semantic_logger-4.6.0.beta1 vs lib/semantic_logger/appender/splunk.rb in semantic_logger-4.6.0
- old
+ new
@@ -1,8 +1,8 @@
begin
require 'splunk-sdk-ruby'
rescue LoadError
- raise 'Gem splunk-sdk-ruby is required for logging to Splunk. Please add the gem "splunk-sdk-ruby" to your Gemfile.'
+ raise LoadError.new('Gem splunk-sdk-ruby is required for logging to Splunk. Please add the gem "splunk-sdk-ruby" to your Gemfile.')
end
# Splunk log appender.
#
# Use the official splunk gem to log messages to Splunk.