Skip to content

Commit

Permalink
Remove deprecated VERBOSE logging configuration
Browse files Browse the repository at this point in the history
The Readme references the `VERBOSE` and `VVERBOSE` environment variables to control logging. However, when these environment variables are used, a deprecation warning is emitted:

    DEPRECATION WARNING: Resque::Worker#verbose and #very_verbose are deprecated. Please set Resque.logger.level instead
  • Loading branch information
jish committed Aug 14, 2017
1 parent b19e2f4 commit 7f3d864
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.markdown
Expand Up @@ -270,12 +270,14 @@ but in the Resque workers it's fine.

### Logging

Workers support basic logging to STDOUT. If you start them with the
`VERBOSE` env variable set, they will print basic debugging
information. You can also set the `VVERBOSE` (very verbose) env
variable.
Workers support basic logging to STDOUT.

$ VVERBOSE=1 QUEUE=file_serve rake environment resque:work
You can control the logging threshold using `Resque.logger.level`:

```ruby
# config/initializers/resque.rb
Resque.logger.level = Logger::DEBUG
```

If you want Resque to log to a file, in Rails do:

Expand Down

0 comments on commit 7f3d864

Please sign in to comment.