Skip to content

Commit

Permalink
Lower the report level of routine http errs in the Fog log
Browse files Browse the repository at this point in the history
The FogLogger was automatically reporting every Excon error (400+ status
code) as an ERROR level message, which was then getting mirrored without
context into the evm.log as an ERROR.  The application already catches,
handles, and logs these occurances with relevant context, so the automatic
instrumentation only needs to report the gritty details of these events
at the DEBUG level.
  • Loading branch information
mansam committed Jun 13, 2017
1 parent d62dd7d commit 4c16bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vmdb/loggers/fog_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def instrument(name, params = {})
case name
when "excon.request" then [:debug, message_for_excon_request(params)]
when "excon.response" then [:debug, message_for_excon_response(params)]
when "excon.error" then [:error, message_for_excon_error(params)]
when "excon.error" then [:debug, message_for_excon_error(params)]
else [:debug, message_for_other(params)]
end

Expand Down

0 comments on commit 4c16bb1

Please sign in to comment.