Skip to content

Commit

Permalink
allow to use Syslog::Logger
Browse files Browse the repository at this point in the history
https://ruby-doc.org/stdlib-2.6.3/libdoc/syslog/rdoc/Syslog/Logger.html has no `log` method defined, but `add` defined
https://ruby-doc.org/stdlib-2.6.3/libdoc/logger/rdoc/Logger.html has `log` method as alias for `add`


both loggers  have shortcut `info`  method
  • Loading branch information
Fivell authored Apr 23, 2021
1 parent e29b313 commit f64ec1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/excon/instrumentors/logging_instrumentor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.instrument(name, params = {})
end
end

logger.log(Logger::INFO, info) if info
logger.info(info) if info

yield if block_given?
end
Expand Down

0 comments on commit f64ec1a

Please sign in to comment.