lib/logjam_agent/railtie.rb in logjam_agent-0.14.0 vs lib/logjam_agent/railtie.rb in logjam_agent-0.15.0
- old
+ new
@@ -59,9 +59,11 @@
LogjamAgent.forwarding_error_logger = forwarding_error_logger
# ignore asset requests in development
LogjamAgent.ignore_asset_requests = Rails.env.development?
+ LogjamAgent.application_revision = `git rev-parse HEAD 2>/dev/null`.chomp rescue ""
+
# patch controller testing to create a logjam request, because middlewares aren't executed
if Rails.env.test?
ActiveSupport.on_load(:action_controller) do
require 'action_controller/test_case'
module ActionController::TestCase::Behavior