Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sentry-ruby/lib/sentry/transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def prepare_encoded_event(event)

event_id = event_hash[:event_id] || event_hash["event_id"]
event_type = event_hash[:type] || event_hash["type"]
configuration.logger.info(LOGGER_PROGNAME) { "Sending #{event_type} #{event_id} to Sentry" }
configuration.logger.debug(LOGGER_PROGNAME) { "Sending #{event_type} #{event_id} to Sentry" }
encode(event_hash)
end
end
Expand Down
4 changes: 2 additions & 2 deletions sentry-ruby/spec/sentry/transport_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

RSpec.describe Sentry::Transport do
let(:io) { StringIO.new }
let(:logger) { Logger.new(io) }
let(:logger) { Logger.new(io, :debug) }
let(:configuration) do
Sentry::Configuration.new.tap do |config|
config.server = 'http://12345:67890@sentry.localdomain/sentry/42'
Expand Down Expand Up @@ -115,7 +115,7 @@
expect(subject.send_event(event)).to eq(event)

expect(io.string).to match(
/INFO -- sentry: Sending event #{event.event_id} to Sentry/
/DEBUG -- sentry: Sending event #{event.event_id} to Sentry/
)
end
end
Expand Down