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

go-pkgz / lgr
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.12.2
DEFAULT BRANCH: master
Repo Added 07 Jan 2019 08:30PM UTC
Files 6
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

LAST BUILD ON BRANCH fix-from-slog-handler-add-source
branch: fix-from-slog-handler-add-source
CHANGE BRANCH
x
Reset
  • fix-from-slog-handler-add-source
  • adaptor
  • add-slog-integration
  • fix-ci-caching
  • fix-slog-debug-and-modernize
  • formatter
  • levels-shortcut
  • mapper
  • master
  • rbac
  • refs/tags/v0.10.0
  • refs/tags/v0.10.1
  • refs/tags/v0.10.2
  • refs/tags/v0.10.3
  • refs/tags/v0.10.4
  • refs/tags/v0.11.0
  • refs/tags/v0.11.1
  • refs/tags/v0.12.0
  • refs/tags/v0.12.1
  • refs/tags/v0.12.2
  • refs/tags/v0.7.0
  • refs/tags/v0.8.0
  • refs/tags/v0.9.0
  • v0.4.0
  • v0.5.0
  • v0.6.0
  • v0.6.1
  • v0.6.2
  • v0.6.3

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

Relevant lines Covered
Build:
Build:
501 RELEVANT LINES 474 COVERED LINES
239.87 HITS PER LINE
Source Files on fix-from-slog-handler-add-source
  • Tree
  • List 6
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
21886699364 fix-from-slog-handler-add-source 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 ... Pull #28 10 Feb 2026 11:40PM UTC paskal github
94.61
See All Builds (140)
  • Repo on GitHub
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