Permalink
Browse files

[popen-errors] also log unexpected error w/ warn log level

  • Loading branch information...
1 parent f588497 commit bb2b92582aed226f63e8bf6a3263e4afd3464b0a @portertech portertech committed Mar 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sensu/client.rb
View
@@ -93,6 +93,7 @@ def execute_check(check)
end
check.status = $?.exitstatus
rescue => error
+ @logger.warn('[execute] -- unexpected error: ' + error.to_s)
check.output = 'Unexpected error: ' + error.to_s
check.status = 2
end

0 comments on commit bb2b925

Please sign in to comment.