diff options
author | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-07-14 10:59:40 +0100 |
---|---|---|
committer | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-07-14 10:59:40 +0100 |
commit | 0940a2469969403c7cb61f00bb5496da803ec8f3 (patch) | |
tree | 665c8356959d200576f12db471909af97d1d1f06 | |
parent | 4b1f7c2c11d33e8adad696671ef82d13cb3d5168 (diff) |
Typo fix @tranaction -> @transaction
-rw-r--r-- | lib/longboat/collector.rb | 4 | ||||
-rw-r--r-- | lib/longboat/raiders.rb | 2 |
2 files changed, 3 insertions, 3 deletions
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 |