Skip to content

Commit

Permalink
Why did this work in dev?
Browse files Browse the repository at this point in the history
  • Loading branch information
thesecretmaster committed Mar 19, 2019
1 parent a7893dc commit fc123f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/redis_logging.rb
Expand Up @@ -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
Expand Down

0 comments on commit fc123f8

Please sign in to comment.