rails-healthcheck 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06b6b187117febba6fc4a7fc1d40cc98d373f81a4ce1dfe592e3412feb3a6249
4
- data.tar.gz: c9c0414a04b54b26212cc154c660216165fb32f86d7868b318612b7d78965292
3
+ metadata.gz: 90d8e05e3632eea15ad496a96cad8ab62120f22bfa1b2b9e5d0d58965fc6015b
4
+ data.tar.gz: baa0baa4729818b03ec644ffbfcf1f5b41741458422c6a1c4baff96cef6dca95
5
5
  SHA512:
6
- metadata.gz: a1c90b4a64e973a515ce0070aa64bae635c1702ee83491d520dff291f1e9fd0ffca3ed15759edee7a877e2a2f2dc21e558f967a4d3a02d72448341e08ee4d7fc
7
- data.tar.gz: 7377d4d5ef905dff4e90e088ee5b07caae4089bc22009e6f33e59b6f445c2eb2e3e68528bf874bd870c7f6e9b2f5ff5b834a54c7416673fdd63622d95e5abf9b
6
+ metadata.gz: bc248fa637568e69c70389b6d74ae9d1a88608781f9b5b31488355a836cf9549aaec03e5d258cde1c61a44c0d1bb2ca61df019540b60b35276c5d2979059ff78
7
+ data.tar.gz: 6e23c81ce1702ddbd4ba205de93194c19384e06c7ca92ff69b1fbc964b2abf2b8af007e96b2f53d757dc77d17dad28030bff31532edc04ad2a179de4b958c258
data/README.md CHANGED
@@ -125,6 +125,21 @@ Transfer-Encoding: chunked
125
125
  {"code":503,"errors":[{"name":"zero_division","exception":"ZeroDivisionError","message":"divided by 0"}]}
126
126
  ```
127
127
 
128
+ ## Ignoring logs
129
+
130
+ ### Lograge
131
+
132
+ If you are using [Lograge](https://github.com/roidrage/lograge) you can ignore Healthcheck logs using this code:
133
+
134
+ ```ruby
135
+ # config/environments/production.rb
136
+
137
+ Rails.application.configure do
138
+ config.lograge.enabled = true
139
+ config.lograge.ignore_actions = [Healthcheck::CONTROLLER_ACTION]
140
+ end
141
+ ```
142
+
128
143
  ## Contributing
129
144
 
130
145
  1. Fork it
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Healthcheck
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
data/lib/healthcheck.rb CHANGED
@@ -9,6 +9,8 @@ require 'healthcheck/router'
9
9
  require 'healthcheck/engine'
10
10
 
11
11
  module Healthcheck
12
+ CONTROLLER_ACTION = 'Healthcheck::HealthchecksController#check'
13
+
12
14
  module_function
13
15
 
14
16
  def configure
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-healthcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - linqueta