qa: fix deprecated log.warn in feature_dbcrash test #16491

pull jonatack wants to merge 1 commits into bitcoin:master from jonatack:test-fix-feature_dbcrash-warn-deprecation changing 1 files +1 −1
  1. jonatack commented at 9:28 PM on July 29, 2019: member

    This clears up the following deprecation message when running test/functional/feature_dbcrash.py:

    test/functional/feature_dbcrash.py:270:
    DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
      self.log.warn("Node %d never crashed during utxo flush!", i)
    

    Git grepping indicates that this was the last remaining use of log.warn in the functional tests.

  2. qa: fix deprecated log.warn in feature_dbcrash test
    This clears up the following deprecation message when running the test:
    ```
    test/functional/feature_dbcrash.py:270: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
      self.log.warn("Node %d never crashed during utxo flush!", i)
    ```
    
    Git grepping indicates that this was the last remaining use of `log.warn` in the functional tests.
    62d3f5057f
  3. fanquake added the label Tests on Jul 29, 2019
  4. fanquake approved
  5. fanquake commented at 3:07 AM on July 30, 2019: member

    ACK 62d3f5057f2ed0c8646839f38dbe29adf4601502 - checked that there were no more occurrences.

    From the Python 3.5 docs:

    logging.warning(msg, *args, **kwargs) Logs a message with level WARNING on the root logger. The arguments are interpreted as for debug(). Note: There is an obsolete function warn which is functionally identical to warning. As warn is deprecated, please do not use it - use warning instead.

  6. fanquake merged this on Jul 30, 2019
  7. fanquake closed this on Jul 30, 2019

  8. fanquake referenced this in commit 2410088003 on Jul 30, 2019
  9. jonatack deleted the branch on Jul 30, 2019
  10. PastaPastaPasta referenced this in commit 523fb155f3 on Jun 27, 2021
  11. PastaPastaPasta referenced this in commit cc2b8d600b on Jun 28, 2021
  12. PastaPastaPasta referenced this in commit b029f7e404 on Jun 29, 2021
  13. PastaPastaPasta referenced this in commit f60d837b8f on Jul 1, 2021
  14. PastaPastaPasta referenced this in commit 244057424e on Jul 1, 2021
  15. PastaPastaPasta referenced this in commit 29e2db0892 on Sep 11, 2021
  16. PastaPastaPasta referenced this in commit 15c4f6cf5d on Sep 11, 2021
  17. PastaPastaPasta referenced this in commit c784985c5e on Sep 11, 2021
  18. PastaPastaPasta referenced this in commit 75e83e9838 on Sep 11, 2021
  19. PastaPastaPasta referenced this in commit 1c4faeefaf on Sep 12, 2021
  20. PastaPastaPasta referenced this in commit cb53eece24 on Sep 12, 2021
  21. PastaPastaPasta referenced this in commit 5b987c7c2a on Sep 12, 2021
  22. MarcoFalke locked this on Dec 16, 2021
Contributors
Labels

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-14 21:14 UTC

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