Browse Source

computed_exception

main
pvincent 3 months ago
parent
commit
6b7b1c7113
  1. 1
      app/controllers/scores_controller.rb
  2. 6
      lib/semantic/ansi_formatter.rb

1
app/controllers/scores_controller.rb

@ -37,6 +37,7 @@ class ScoresController < ApplicationController
end
def destroy
raise 'not permitted'
# @score.destroy!
# redirect_to scores_url, notice: 'Score was successfully destroyed.', status: :see_other

6
lib/semantic/ansi_formatter.rb

@ -36,7 +36,11 @@ module Semantic
self.logger = logger
self.color = color_map[log.level]
wrap_level(compute_useful_length, message, payload, exception)
computed_exception = exception
result = wrap_level(compute_useful_length, message, payload, computed_exception)
return result unless computed_exception
result << "\n" << build_terminus
end
def reject(log)

Loading…
Cancel
Save