cli: Ignore libevent warnings #13394

pull theuni wants to merge 1 commits into bitcoin:master from theuni:cli-event changing 1 files +13 −0
  1. theuni commented at 7:00 PM on June 4, 2018: member

    Should fix rpc tests that fail due to an unclean stderr.

    Untested as I'm not seeing these warnings. @promag mind seeing if this fixes your problem?

  2. cli: Ignore libevent warnings 0231ef6c6d
  3. laanwj added the label RPC/REST/ZMQ on Jun 4, 2018
  4. laanwj commented at 12:20 AM on June 5, 2018: member

    utACK 0231ef6c6d4f45edffda4ac3bce2048f9c8a8c00

  5. Empact commented at 8:54 AM on June 5, 2018: member

    According to the below the default is to log message to stderr, do we want to keep logging the lower-level messages? http://www.wangafu.net/~nickm/libevent-book/Ref1_libsetup.html

    Edit: here's the current default behavior https://github.com/libevent/libevent/blob/e83443ec67d45447296c2ce320620a07c88e1d32/log.c#L223

  6. laanwj commented at 5:18 PM on June 5, 2018: member

    Yes, the messages go to stderr. Which is normally fine, at least they don't mess up the application output! But the extra stderr output (something with a certain version of OSX) was causing problems in the functional tests for @promag.

  7. Empact commented at 7:47 PM on June 5, 2018: member

    Maybe send them to the debuglogfile?

  8. laanwj commented at 5:40 AM on June 7, 2018: member

    No, bitcoin-cli should definitely not write to any debug log file.

    • That'd be entirely unexpected for a simple command line tool
    • It gets in the way of concurrent usage
  9. laanwj commented at 5:41 AM on June 7, 2018: member

    @promag Can you test this? It's kind of blocked on that.

  10. promag commented at 6:48 AM on June 7, 2018: member

    Tested ACK 0231ef6 - it fixes my problem. @theuni how could I test the throw added?

    Before:

    ./src/bitcoin-cli -regtest help
    [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
    == Blockchain ==
    getbestblockhash
    ...
    

    After

    ./src/bitcoin-cli -regtest help
    == Blockchain ==
    getbestblockhash
    ...
    
  11. laanwj merged this on Jun 7, 2018
  12. laanwj closed this on Jun 7, 2018

  13. laanwj referenced this in commit e1f8dce993 on Jun 7, 2018
  14. MarcoFalke commented at 2:17 PM on June 7, 2018: member

    @theuni how could I test the throw added? @promag You can test the throw by replacing severity >= EVENT_LOG_ERR with true. Would you mind doing that post-merge, please?

  15. jasonbcox referenced this in commit 50ae4433e7 on Oct 11, 2019
  16. jonspock referenced this in commit 01284e855d on Dec 27, 2019
  17. jonspock referenced this in commit 4340f5ce59 on Dec 29, 2019
  18. UdjinM6 referenced this in commit c93ea07505 on Jun 19, 2021
  19. UdjinM6 referenced this in commit 4091989d36 on Jun 24, 2021
  20. UdjinM6 referenced this in commit 2942aa5a46 on Jun 26, 2021
  21. UdjinM6 referenced this in commit d4b4779eae on Jun 26, 2021
  22. PastaPastaPasta referenced this in commit 7c84a2149b on Jun 27, 2021
  23. PastaPastaPasta referenced this in commit 82083964a4 on Jun 28, 2021
  24. PastaPastaPasta referenced this in commit c7dc658859 on Jun 28, 2021
  25. UdjinM6 referenced this in commit 62c1477638 on Jun 28, 2021
  26. PastaPastaPasta referenced this in commit d6fac3bd4f on Jun 29, 2021
  27. MarcoFalke locked this on Sep 8, 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-13 15:15 UTC

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