Skip to content

Commit

Permalink
Bugfix: show compatible for autonomous DB also if it's empty
Browse files Browse the repository at this point in the history
Put empty line after stack trace to distinguish from next
  • Loading branch information
rammpeter committed Sep 17, 2023
1 parent e740073 commit bdd2b49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/exception_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def log_exception_backtrace(exception, line_number_limit=nil, log_mode: :error)
output << "#{bt}\n" if line_number_limit.nil? || curr_line_no < line_number_limit # report First x lines of stacktrace in log
curr_line_no += 1
end

output << "--- end of stacktrace ---\n\n\n"
Rails.logger.send(log_mode, 'ExceptionHelper.log_exception_backtrace') { "Stack-Trace for #{exception.class}:\n#{output}" }
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/env/_start_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

show_compatible = proc do |rec|
if rec.compatible == rec.version[0, rec.compatible.length]
if rec.compatible == rec.version[0, rec.compatible&.length]
"<span class=\"cui-thumb-up\"></span>".html_safe
else
"<span style=\"background-color:lightyellow;\">#{rec.compatible}</span>".html_safe
Expand Down

0 comments on commit bdd2b49

Please sign in to comment.