Skip to content
Permalink
Browse files

Why did this work in dev?

  • Loading branch information...
thesecretmaster committed Mar 19, 2019
1 parent a7893dc commit fc123f8c71d01b433d48222bfe68ef766f0750d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/initializers/redis_logging.rb
@@ -10,7 +10,7 @@ def log_timestamps(ts, status:, action:, controller:, format:, method:, view_run
redis = redis(logger: true)
view_runtime = view_runtime.to_f
db_runtime = db_runtime.to_f
rlog("Logging timestamps FR, path == #{path}", ts, uuid)

return if path.nil?
path = Rails.sensible_routes.match_for(path)&.path || path.split('?').first
redis.zadd "request_timings/view/by_path/#{method.upcase}/#{path}.#{format}", ts, view_runtime

0 comments on commit fc123f8

Please sign in to comment.
You can’t perform that action at this time.