Skip to content

Commit 7a80f98

Browse files
authored
Merge branch '0-10-stable' into v0.10/add_raise_cannot_infer_root_key_error_option
2 parents 8fe1aee + f495f44 commit 7a80f98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/general/logging.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ ActiveModelSerializers.logger = Logger.new(STDOUT)
1616
You can also disable the logger, just put this in `config/initializers/active_model_serializers.rb`:
1717

1818
```ruby
19-
require 'active_model_serializers'
20-
ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT)
19+
ActiveModelSerializers.logger = Logger.new(IO::NULL)
2120
```

0 commit comments

Comments
 (0)