lib/ting_yun/instrumentation/thrift.rb in tingyun_rpm-1.1.4.1 vs lib/ting_yun/instrumentation/thrift.rb in tingyun_rpm-1.1.4.2

- old
+ new

@@ -255,11 +255,11 @@ data = TingYun::Support::Serialize::JSONWrapper.dump("TingyunID" => tingyun_id) @oprot.write_field_begin("TingyunField", 11, 6) @oprot.write_string(data) @oprot.write_field_end rescue => e - TingYun::Agent.logger.error("Failed to thrift send_message_args_with_tingyun : ", e) + #TingYun::Agent.logger.error("Failed to thrift send_message_args_with_tingyun : ", e) ensure send_message_args_without_tingyun(args_class, args) end end @@ -277,11 +277,11 @@ return unless state.execution_traced? stack = state.traced_method_stack node = stack.push_frame(state,:thrift,t0) operations[tag][:node] = node rescue => e - TingYun::Agent.logger.error("Failed to thrift send_message_with_tingyun : ", e) + #TingYun::Agent.logger.error("Failed to thrift send_message_with_tingyun : ", e) ensure send_message_without_tingyun(name, args_class, args) end end @@ -298,11 +298,11 @@ result = send_oneway_message_without_tingyun(name, args_class, args) duration = (Time.now.to_f - op_started)*1000 TingYun::Agent.instance.stats_engine.tl_record_scoped_and_unscoped_metrics(base, other_metrics, duration) result rescue => e - TingYun::Agent.logger.error("Failed to thrift send_oneway_message_with_tingyun : ", e) + #TingYun::Agent.logger.error("Failed to thrift send_oneway_message_with_tingyun : ", e) return send_oneway_message_without_tingyun(name, args_class, args) end end alias :send_oneway_message_without_tingyun :send_oneway_message @@ -338,10 +338,10 @@ stack.pop_frame(state, node, node_name, t1) end result rescue => e - TingYun::Agent.logger.error("Failed to thrift receive_message_with_tingyun : ", e) + #TingYun::Agent.logger.error("Failed to thrift receive_message_with_tingyun : ", e) return receive_message_without_tingyun(result_klass) end end alias :receive_message_without_tingyun :receive_message \ No newline at end of file