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

bleedingdeacons / trumpet / 30669961026
94%

Build:
DEFAULT BRANCH: main
Ran 31 Jul 2026 10:27PM UTC
Jobs 1
Files 11
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

31 Jul 2026 10:26PM UTC coverage: 93.527% (+0.7%) from 92.786%
30669961026

push

github

web-flow
fix(logging): diagnostic traces are debug, not error (#35)

The announcement change tracker and repository logged routine events — a
cache cleared, a hook about to fire — through Plugin::logError(), wrapped in
`defined('WP_DEBUG') && WP_DEBUG`. Both halves were wrong.

The level is simply incorrect: these are traces, not errors, and the trait has
exposed logDebug() all along. The practical cost is that
`wp log tail --level=error` on the test machine is mostly noise, so the one
command that should answer "did anything break?" cannot.

The guard is a second severity mechanism competing with the first. Sentinel
already filters on SENTINEL_LOG_LEVEL (default debug); gating on WP_DEBUG
decides severity again, somewhere else, in a way that is site-wide and cannot
be tuned per channel. Removed, so there is one control.

5 call sites. Matches the same change in tsml-for-unity.

Note this is not log-volume-neutral: with SENTINEL_LOG_LEVEL at its default of
debug, a site running WP_DEBUG off goes from no entries to one per
announcement save. Set SENTINEL_LOG_LEVEL to notice on any install that does
not want the trace.

120 tests / 173 assertions, unchanged. PHPStan clean.

838 of 896 relevant lines covered (93.53%)

6.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
88.89
6.39% trumpet/trumpet/src/Trumpet/Announcement/AnnouncementChangeTracker.php
2
94.42
1.83% trumpet/trumpet/src/Trumpet/Announcement/AnnouncementRepository.php
Jobs
ID Job ID Ran Files Coverage
1 30669961026.1 31 Jul 2026 10:27PM UTC 11
93.53
GitHub Action Run
Source Files on build 30669961026
  • Tree
  • List 11
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30669961026
  • e3ac5eaf on github
  • Prev Build on main (#30568055663)
  • Next Build on main (#30670099437)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc