• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 25571109033 / 26
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 08 May 2026 06:02PM UTC
Files 156
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 May 2026 05:58PM UTC coverage: 95.631% (+0.001%) from 95.63%
25571109033.26

Pull #2704

github

ericproulx
Expose API logger via Grape::Endpoint#logger

Add a `Grape::Endpoint#logger` accessor that delegates to
`options[:for].logger`. The API's configured logger is now reachable
without a helper from inside any context whose `self` is the
endpoint: route handlers, `before` / `before_validation` /
`after_validation` / `after` / `finally` filters, and `rescue_from`
blocks.

A user-defined `helpers do; def logger; ...; end` still wins, since
helpers are mixed into the endpoint's singleton class — so the
addition is backwards compatible.

Drops the helper workaround from `benchmark/remounting.rb` to
illustrate the simplification.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2704: Expose API logger via Grape::Endpoint#logger

1054 of 1163 branches covered (90.63%)

Branch coverage included in aggregate %.

3368 of 3461 relevant lines covered (97.31%)

1006.77 hits per line

Source Files on job run-4.0-Gemfile - 25571109033.26
  • Tree
  • List 156
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25571109033
  • dc82494e on github
  • Prev Job for on feature/endpoint-logger (#25564552185.3)
  • Next Job for on feature/endpoint-logger (#25571135293.9)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc