Skip to content

Commit c2d9e4d

Browse files
committed
Remove debugging headers
1 parent 3175ee6 commit c2d9e4d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

config/initializers/ahoy.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
class Ahoy::Store < Ahoy::DatabaseStore
22
def track_visit(data)
33
data[:ip] = request.headers["CF-Connecting-IP"] || request.remote_ip
4-
5-
if request.session[:user_id] == 1
6-
begin
7-
Sentry.capture_message("Ahoy Headers for User 1", extra: { headers: request.headers.to_h })
8-
rescue => e
9-
Sentry.capture_exception(e)
10-
end
11-
end
12-
134
super(data)
145
end
156
end

0 commit comments

Comments
 (0)