README.md in ratchetio-0.5.2 vs README.md in ratchetio-0.5.3
- old
+ new
@@ -92,9 +92,19 @@
- ActionController::RoutingError
If you'd like to customize this list, see the example code in `config/initializers/ratchetio.rb`. Supported levels: "critical", "error", "warning", "info", "debug", "ignore". Set to "ignore" to cause the exception not to be reported at all.
+## Silencing exceptions at runtime
+
+If you just want to disable exception reporting for a single block, use `Ratchetio.silenced`:
+
+```ruby
+Ratchetio.silenced {
+ foo = bar # will not be reported
+}
+```
+
## Asynchronous reporting
By default, all messages are reported synchronously. You can enable asynchronous reporting by adding the following in `config/initializers/ratchetio.rb`: