Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API.logger is confusing statement #1540

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#### 0.19.1 (Next)

* [#1536](https://github.com/ruby-grape/grape/pull/1536): Updates `invalid_versioner_option` translation - [@Lavode](https://github.com/Lavode).
* [#1540](https://github.com/ruby-grape/grape/pull/1540): Api.logger is confusing statement - [@greenfieldtech-davidb](https://github.com/greenfieldtech-davidb).
* Your contribution here.

### 0.19.0 (12/18/2016)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2171,10 +2171,10 @@ To log messages from within an endpoint, you need to define a helper to make the
available in the endpoint context.

```ruby
class API < Grape::API
class MyAPI < Grape::API
helpers do
def logger
API.logger
MyAPI.logger
end
end
post '/statuses' do
Expand Down