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

ruby-grape / grape / 25607697500 / 11
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 09 May 2026 05:48PM UTC
Files 156
Run time 4s
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

09 May 2026 05:47PM UTC coverage: 36.054% (+0.006%) from 36.048%
25607697500.11

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

36 of 1165 branches covered (3.09%)

Branch coverage included in aggregate %.

1634 of 3467 relevant lines covered (47.13%)

0.68 hits per line

Source Files on job run-4.0-gemfiles/multi_xml.gemfile - 25607697500.11
  • 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 25607697500
  • 8ee25188 on github
  • Prev Job for on feature/endpoint-logger (#25583959632.32)
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