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

go-pkgz / lgr / 21886699364
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: fix-from-slog-handler-add-source
DEFAULT BRANCH: master
Ran 10 Feb 2026 11:40PM UTC
Jobs 1
Files 6
Run time 1min
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

10 Feb 2026 11:39PM UTC coverage: 94.611% (-0.2%) from 94.828%
21886699364

Pull #28

github

paskal
Fix FromSlogHandler ignoring AddSource option, closes #26

slogLgrAdapter.Logf was unconditionally adding source info as a manually-
constructed attribute, ignoring the handler's AddSource setting. The PC
passed to slog.NewRecord was also invalid (literal `2` instead of a real
program counter).

Replace manual source injection with a proper runtime.Callers PC so slog
handlers resolve source info through their own AddSource logic. Apply the
same fix to the Logger.logf slog-handler path which was passing pc=0.
Pull Request #28: Fix FromSlogHandler ignoring AddSource option

8 of 8 new or added lines in 2 files covered. (100.0%)

474 of 501 relevant lines covered (94.61%)

239.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21886699364.1 10 Feb 2026 11:40PM UTC 6
94.61
GitHub Action Run
Source Files on build 21886699364
  • Tree
  • List 6
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #28
  • PR Base - master (#19903524680)
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