lib/oboe/inst/cassandra.rb in oboe-1.4.2.2 vs lib/oboe/inst/cassandra.rb in oboe-2.1.1
- old
+ new
@@ -283,11 +283,11 @@
end
end
end
if defined?(::Cassandra) and Oboe::Config[:cassandra][:enabled]
- puts "[oboe/loading] Instrumenting cassandra" if Oboe::Config[:verbose]
+ Oboe.logger.info "[oboe/loading] Instrumenting cassandra" if Oboe::Config[:verbose]
class ::Cassandra
include Oboe::Inst::Cassandra
[ :insert, :remove, :count_columns, :get_columns, :multi_get_columns, :get,
@@ -295,18 +295,18 @@
:create_index, :drop_index, :add_column_family, :drop_column_family,
:add_keyspace, :drop_keyspace].each do |m|
if method_defined?(m)
class_eval "alias #{m}_without_oboe #{m}"
class_eval "alias #{m} #{m}_with_oboe"
- else puts "[oboe/loading] Couldn't properly instrument Cassandra (#{m}). Partial traces may occur."
+ else Oboe.logger.warn "[oboe/loading] Couldn't properly instrument Cassandra (#{m}). Partial traces may occur."
end
end
# Special case handler for question mark methods
if method_defined?(:exists?)
alias exists_without_oboe? exists?
alias exists? exists_with_oboe?
- else puts "[oboe/loading] Couldn't properly instrument Cassandra (exists?). Partial traces may occur."
+ else Oboe.logger.warn "[oboe/loading] Couldn't properly instrument Cassandra (exists?). Partial traces may occur."
end
end # class Cassandra
end