Silent logs of ping rendering
This commit is contained in:
parent
f3f5ef8c3b
commit
b338fe0efc
1 changed files with 6 additions and 4 deletions
|
@ -1,11 +1,13 @@
|
||||||
class PingController < ApplicationController
|
class PingController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
Rails.logger.silence do
|
||||||
if (ActiveRecord::Base.connected?)
|
if (ActiveRecord::Base.connected?)
|
||||||
render nothing: true, status: 200, content_type: "application/json"
|
render nothing: true, status: 200, content_type: "application/json"
|
||||||
else
|
else
|
||||||
render nothing: true, status: 500, content_type: "application/json"
|
render nothing: true, status: 500, content_type: "application/json"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue