summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/input.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/input/input.rb')
-rw-r--r--lib/oxidized/input/input.rb18
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/oxidized/input/input.rb b/lib/oxidized/input/input.rb
index d59c4f3..61f4634 100644
--- a/lib/oxidized/input/input.rb
+++ b/lib/oxidized/input/input.rb
@@ -1,12 +1,16 @@
module Oxidized
class Input
- RescueFail = [
- Timeout::Error,
- Errno::ECONNREFUSED,
- Errno::ECONNRESET,
- Errno::EHOSTUNREACH,
- Errno::EPIPE,
- ]
+ RescueFail = {
+ :debug => [
+ Errno::ECONNREFUSED,
+ ],
+ :warn => [
+ Timeout::Error,
+ Errno::ECONNRESET,
+ Errno::EHOSTUNREACH,
+ Errno::EPIPE,
+ ],
+ }
class << self
def inherited klass
Oxidized.mgr.loader = { :class => klass }