paul_bunyan 1.5.0 → 1.5.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
  SHA1:
3
- metadata.gz: 0b7d9fd1c7ac8e2b72e82b72171ea627c9597196
4
- data.tar.gz: 270c98aa6aa254836aa244db96847b432204df92
3
+ metadata.gz: 89333ed7f827d0e70565f0dc66d41e2e4b484d67
4
+ data.tar.gz: cc170fc31eedb9a87fe0d45554dce618fc17e09a
5
5
  SHA512:
6
- metadata.gz: 7cd3fb82d143d9b6fba0d2f4949ad5a15b52459a6b85fa2ff273a3d13f17754d3bf212a6c133a554a222691e2a6adc90a16a62dc5cfa325513a4e8099e869488
7
- data.tar.gz: 19f8c7c07ac6027f48302882a814b7426dcd3dad228bf4be858075aeccb32d94db72feaddfcdb2cd3019991f775d8969447c1ceb57a6cb0f7485422577bae276
6
+ metadata.gz: a9f164490867d6f21bcb8ec03a35aa589fcf49899c67ab4759b4b3d6d6c83049524d798f107fc8fb42731f5dcfaeedb8d6893e757974d8f763c359f49b4474c5
7
+ data.tar.gz: 57e98f587b4d7ad9132ffc939fe536d10b6003502e3285b0feb59251b6f81325a8b6b344254428cacf219f6e4c2d574c3b7bc0bffda07e18c06c54787c431d81
data/README.md CHANGED
@@ -62,3 +62,7 @@ the request host to the metadata in the examples directory. There are a few
62
62
  keys that are used internally that will be overwritten when added to user
63
63
  supplied metadata, this list can be found in the `#call` method of
64
64
  `PaulBunyan::JSONFormatter`.
65
+
66
+ ### Seeing what your server logs will look like in the console
67
+ To do this set `PB_DISABLE_CONSOLE_OVERRIDE` in your environment:
68
+ `PB_DISABLE_CONSOLE_OVERRIDE=1 bundle exec rails c`
@@ -42,7 +42,7 @@ module PaulBunyan
42
42
  end
43
43
 
44
44
  console do
45
- PaulBunyan.logger.formatter = TextFormatter.new(include_metadata: false)
45
+ PaulBunyan.logger.formatter = TextFormatter.new(include_metadata: false) unless ENV['PB_DISABLE_CONSOLE_OVERRIDE']
46
46
  end
47
47
 
48
48
  def conditionally_unsubscribe(listener)
@@ -1,3 +1,3 @@
1
1
  module PaulBunyan
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
3
3
  end
@@ -18,7 +18,6 @@ Dummy::Application.configure do
18
18
  config.static_cache_control = 'public, max-age=3600'
19
19
  end
20
20
 
21
-
22
21
  # Show full error reports and disable caching.
23
22
  config.consider_all_requests_local = true
24
23
  config.action_controller.perform_caching = false
@@ -42,4 +41,13 @@ Dummy::Application.configure do
42
41
 
43
42
  # Raises error for missing translations
44
43
  # config.action_view.raise_on_missing_translations = true
44
+
45
+ # Simulate default production logging configuration
46
+ if Rails.version < '5.1'
47
+ config.log_formatter = ::Logger::Formatter.new
48
+ else
49
+ logger = ActiveSupport::Logger.new(STDOUT)
50
+ logger.formatter = config.log_formatter
51
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
52
+ end
45
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paul_bunyan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Johnson
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-09-26 00:00:00.000000000 Z
14
+ date: 2018-02-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: request_store