aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-06-18 00:01:08 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-06-18 00:01:08 +0900
commitbbe05db50cc521c25a57dd9cafb7f7bd50410554 (patch)
treea7981af0dd57b1529ee397068c2da1699b6506a8
parent8c9899d498f63139e7e56e57cad913d357aa986e (diff)
downloadaclog-bbe05db50cc521c25a57dd9cafb7f7bd50410554.tar.gz
collector: collector must not die even when received invalid message (even if it was invalid as MsgPack)
-rw-r--r--lib/collector/collector_proxy_connection.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/collector/collector_proxy_connection.rb b/lib/collector/collector_proxy_connection.rb
index 986fa8e..1b92d15 100644
--- a/lib/collector/collector_proxy_connection.rb
+++ b/lib/collector/collector_proxy_connection.rb
@@ -54,6 +54,8 @@ module Collector
log(:error, "Failed to parse message: #{msg}")
end
end
+ rescue
+ log(:fatal, "Failed to parse data: #{data}")
end
def exit