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

KarpelesLab / libwallet / 24508972981
25%

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2026 12:09PM UTC
Jobs 1
Files 84
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

16 Apr 2026 11:59AM UTC coverage: 20.751% (-0.04%) from 20.794%
24508972981

push

github

MagicalTux
wltlog: route output through the event channel so iOS Flutter sees it

On Flutter+iOS, the Go runtime's os.Stderr is NOT captured by the
host app's logger — log.Printf writes literally go nowhere the
user can read. That made all of 0.3.12's diagnostic logging
invisible to the tester who triggered this work.

Fix: route every wltlog emission through the apirouter broadcast
channel (already used for Web3 requests, balance changes, etc.).
Dart subscribes to the channel, sees {"event":"log", "data":{
"level":"debug","msg":"..."}} and can forward it to
developer.log / print — which actually shows up in Flutter's log
output on all three platforms.

- wltlog gains a Sink type and SetSink() to install a host-side
  forwarder. wltbase/info.go:init wires it up to wltutil.
  BroadcastMsg("log", {...}).
- New LogEvent in dart/lib/src/events/events.dart with level +
  message fields; exported from libwallet.dart.
- New LibwalletClient.logs stream — convenience typed filter over
  the general events stream. Docstring shows the developer.log
  pattern.
- Sink panics are swallowed with a fallback to stderr, so a
  broken broadcast pipeline can never take down a user's send.
- Tests (no sink installed) keep the existing log.Printf stderr
  output they already rely on.

Recommended Flutter wiring (will also land in the example app):

    import 'dart:developer' as developer;
    client.logs.listen((e) {
      developer.log(e.message, name: 'libwallet.${e.level}');
    });

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

1 of 30 new or added lines in 2 files covered. (3.33%)

2132 of 10274 relevant lines covered (20.75%)

2.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
0.0
0.0% wltlog/log.go
5
18.45
-0.11% wltbase/info.go
Jobs
ID Job ID Ran Files Coverage
1 24508972981.1 16 Apr 2026 12:09PM UTC 84
20.75
GitHub Action Run
Source Files on build 24508972981
  • Tree
  • List 84
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24508972981
  • 818f967b on github
  • Prev Build on master (#24508175158)
  • Next Build on master (#24509709508)
  • Delete
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