Browse files

Rescue from SystemCallError.

  • Loading branch information...
1 parent 4e09da3 commit 3e4bb95640af7caf3da895b2232c6079dca795f6 @AlekSi AlekSi committed Dec 2, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −0 CHANGELOG
  2. +1 −1 lib/gelf/notifier.rb
View
3 CHANGELOG
@@ -1,3 +1,6 @@
+1.3.2, 2011-12-02:
+ * rescue from more network errors.
+
1.3.1, 2011-10-28:
+ allow to rescue from network errors.
View
2 lib/gelf/notifier.rb
@@ -129,7 +129,7 @@ def #{const.downcase}(*args) # def debug(*args)
private
def notify_with_level(message_level, *args)
notify_with_level!(message_level, *args)
- rescue SocketError
+ rescue SocketError, SystemCallError
raise unless self.rescue_network_errors
rescue Exception => exception
notify_with_level!(GELF::UNKNOWN, exception)

0 comments on commit 3e4bb95

Please sign in to comment.