aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2020-11-16 12:22:24 +0000
committerNat Lasseter <nat.lasseter@york.ac.uk>2020-11-16 12:22:30 +0000
commit1f1cd6c0ec327d5e77877a7847a4a70dc69794e9 (patch)
tree9bdb1d8bb8bad3986d44f3de1b86aafca5ef7f32
parent618f835efedcace3c722549d6a436ceeb84c5cba (diff)
Fix typo and improve error reporting
-rw-r--r--lib/longboat/raiders.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb
index eb30612..de0b274 100644
--- a/lib/longboat/raiders.rb
+++ b/lib/longboat/raiders.rb
@@ -34,7 +34,7 @@ module Longboat
"longboat_meta_raider_runtime",
(time_taken.to_f * 1000).to_i,
help: "Time taken by a raider whilst raiding in ms",
- type: "guage",
+ type: "gauge",
labels: {raider: name}
)
@@ -43,6 +43,7 @@ module Longboat
@collector.abort!
$stderr.puts "[ERROR] Caught exception from raider: #{name}"
+ $stderr.puts "[ERROR] Exception reads: #{e.message}"
$stderr.puts "[ERROR] Aborted collector transaction"
$stderr.puts "[ERROR] Backtrace reads: \"#{e.backtrace}\""
end