tests: bitcoind stdout and error should be passed to the logger #13519

issue MarcoFalke opened this issue on June 21, 2018
  1. MarcoFalke commented at 2:00 PM on June 21, 2018: member

    Currently the stdout of bitcoinds in functional tests is written to a file in self.datadir of the node. It is only read/examined after the node is shut down. To aid debugging it should (also?) be passed to the logger for visibility and timestamps.

  2. MarcoFalke added the label Brainstorming on Jun 21, 2018
  3. MarcoFalke added the label Tests on Jun 21, 2018
  4. MarcoFalke added the label good first issue on Jun 21, 2018
  5. jnewbery commented at 5:45 PM on June 21, 2018: member

    I don't understand the "visibility and timestamps" comment. combine_logs interleaves node logs with test framework logs. Is there some missing functionality that would make debugging easier?

  6. MarcoFalke commented at 6:26 PM on June 21, 2018: member

    Sometimes the node writes to stdout or stderr. Do we also write to the debug.log in every such instance?

    If so this issue can be closed based on a misunderstanding of mine.

  7. jnewbery commented at 7:06 PM on June 21, 2018: member

    No, sorry - you're right. We don't include stderr or stdout. My misunderstanding.

  8. MarcoFalke commented at 8:39 PM on June 21, 2018: member

    One solution would likely be to create a InitLogger in the "ui_interface" and call it in InitError and InitWarning. Then connect it for both the headless bitcoind and the gui.

  9. fanquake deleted a comment on Aug 2, 2018
  10. fanquake deleted a comment on Aug 2, 2018
  11. music referenced this in commit 6fef259d02 on Aug 14, 2018
  12. music referenced this in commit f8d2c21a53 on Aug 14, 2018
  13. music commented at 4:03 AM on August 15, 2018: none

    What do you mean by "connect it" for the headless bitcoind and gui? (I've taken to trying to fix it, sorry if this question is a bit common sense, this is my first bug.)

  14. MarcoFalke removed the label good first issue on Apr 17, 2019
  15. MarcoFalke closed this on Apr 17, 2019

  16. MarcoFalke commented at 9:12 PM on April 17, 2019: member

    Just appending it in combine_logs is probably fine:

    • [test] combine_logs: append node stderr and stdout if it exists #15841
  17. MarcoFalke referenced this in commit 86edb79e97 on May 1, 2019
  18. sidhujag referenced this in commit f8f61428e1 on May 1, 2019
  19. dzutto referenced this in commit 905d9e83e8 on Oct 12, 2021
  20. dzutto referenced this in commit a89fdacab2 on Oct 12, 2021
  21. dzutto referenced this in commit 0d58cdabb7 on Oct 12, 2021
  22. pravblockc referenced this in commit 63c294eb77 on Nov 18, 2021
  23. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 06:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me