Skip to content

Commit 3411921

Browse files
committed
-datadog
1 parent 04611bd commit 3411921

File tree

4 files changed

+4
-37
lines changed

4 files changed

+4
-37
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3-
gem 'lograge'
4-
gem 'lograge-sql'
3+
4+
55

66
ruby '2.3.3'
77
gem 'knock', github: 'psantos10/knock', branch: 'master'

Gemfile.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,6 @@ GEM
8080
rb-fsevent (~> 0.9, >= 0.9.4)
8181
rb-inotify (~> 0.9, >= 0.9.7)
8282
ruby_dep (~> 1.2)
83-
lograge (0.11.2)
84-
actionpack (>= 4)
85-
activesupport (>= 4)
86-
railties (>= 4)
87-
request_store (~> 1.0)
88-
lograge-sql (1.0.0)
89-
activerecord (>= 4, < 7.0)
90-
lograge (~> 0.4)
9183
loofah (2.2.3)
9284
crass (~> 1.0.2)
9385
nokogiri (>= 1.5.9)
@@ -142,8 +134,6 @@ GEM
142134
rb-inotify (0.10.0)
143135
ffi (~> 1.0)
144136
rb-readline (0.5.5)
145-
request_store (1.4.1)
146-
rack (>= 1.4)
147137
ruby_dep (1.5.0)
148138
spring (2.0.2)
149139
activesupport (>= 4.2)
@@ -176,8 +166,6 @@ DEPENDENCIES
176166
jwt
177167
knock!
178168
listen (>= 3.0.5, < 3.2)
179-
lograge
180-
lograge-sql
181169
pg (>= 0.18, < 2.0)
182170
pry
183171
puma (~> 3.11)

app/controllers/application_controller.rb

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ def get_current_user
1717

1818
user
1919
end
20-
def append_info_to_payload(payload)
21-
super
22-
case
23-
when payload[:status] == 200
24-
payload[:level] = "INFO"
25-
when payload[:status] == 302
26-
payload[:level] = "WARN"
27-
else
28-
payload[:level] = "ERROR"
29-
end
30-
end
20+
21+
3122
end

config/initializers/lograge.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)