Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva authored Jun 6, 2024
1 parent e0305c8 commit 1ac5c7a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@ unless Rails.env.development? || Rails.env.test?
end
```
The Rails `config.log_level` is assumed to be `:debug`. If you have it set to something else like `:info`, then you need to update `PutsDebuggerer.printer` to print at a different log level (e.g. `:info`) by adding the following code to the initializer above (this code is a modification of the default at `PutsDebuggerer::PRINTER_RAILS`):
```ruby
PutsDebuggerer.printer = lambda do |output|
puts output if Rails.env.test?
Rails.logger.info(output)
end
```

### Option 2: Manual

Or manually install and require library.
Expand Down

0 comments on commit 1ac5c7a

Please sign in to comment.