Skip to content

Commit

Permalink
Print authentication error stack-trace in INFO level
Browse files Browse the repository at this point in the history
We would like to enhance our supportability by printing a
minimal stack trace that can help the reader understand the issue,
without adding clutter to the log.
  • Loading branch information
orenbm committed Mar 17, 2021
1 parent 3aa9134 commit 7082393
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/authenticate_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def handle_authentication_error(err)

def log_backtrace(err)
err.backtrace.each do |line|
logger.debug(line)
break if line.include?("2.5.0/gems")
logger.info(line)
end
end

Expand Down

0 comments on commit 7082393

Please sign in to comment.