Skip to content

payjoin commands print progress text to stdout, so their output isn't valid JSON #397

Backlog

Description

@tvpeter

receive_payjoin, send_payjoin and resume_payjoin return a JSON object from execute, but PayjoinManager also writes progress messages to stdout with println! while it runs. A script that pipes these commands into a JSON parser gets human-readable text followed by a JSON object, and the parse fails.

Originally posted by @vadim-anfv in #396 (comment)

Activity

  1. chukwudiikeh commented on Dec 2, 2026

    @chukwudiikeh
    Contributor

    I'd like to work on this. Planning to switch the progress messages in payjoin/mod.rs from println! to eprintln!, so they still show in the terminal but stdout only carries the JSON. @tvpeter

  2. moved this from Todo to In Progress in BDK-CLIon Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions