From 0940a2469969403c7cb61f00bb5496da803ec8f3 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Tue, 14 Jul 2020 10:59:40 +0100 Subject: Typo fix @tranaction -> @transaction --- lib/longboat/collector.rb | 4 ++-- lib/longboat/raiders.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/longboat/collector.rb b/lib/longboat/collector.rb index 01bb7f0..e217ab4 100644 --- a/lib/longboat/collector.rb +++ b/lib/longboat/collector.rb @@ -9,7 +9,7 @@ module Longboat end def report!(name, value, help: nil, type: nil, labels: {}, timestamp: Time.now) - raise CollectorTransactionError if @tranaction.nil? + raise CollectorTransactionError if @transaction.nil? name = prefix(name) @@ -18,7 +18,7 @@ module Longboat end def redact!(name, labels: nil) - raise CollectorTransactionError if @tranaction.nil? + raise CollectorTransactionError if @transaction.nil? name = prefix(name) diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb index b77066e..cd93858 100644 --- a/lib/longboat/raiders.rb +++ b/lib/longboat/raiders.rb @@ -44,7 +44,7 @@ module Longboat $stderr.puts "[ERROR] Caught exception from raider: #{name}" $stderr.puts "[ERROR] Aborted collector transaction" - $stderr.puts "[ERROR] Exception reads: \"#{e.message}\"" + $stderr.puts "[ERROR] Backtrace reads: \"#{e.backtrace}\"" end end end -- cgit v1.2.1