Commit efa9e945 authored by Jérome Perrin's avatar Jérome Perrin

zodbdump: use logging.warning instead of deprecated logging.warn

parent 19f230c2
......@@ -78,9 +78,15 @@ def txn_raw_extension(stor, txn):
# in a rational way
stor_name = "(%s, %s)" % (type(stor).__name__, stor.getName())
if stor_name not in _already_warned_notxnraw:
logging.warn("%s: storage does not provide IStorageTransactionInformationRaw ...", stor_name)
logging.warn("... will do best-effort to dump pickles in stable order but this cannot be done 100% correctly")
logging.warn("... please upgrade your ZODB & storage: see https://github.com/zopefoundation/ZODB/pull/183 for details.")
logging.warning(
"%s: storage does not provide IStorageTransactionInformationRaw ...",
stor_name)
logging.warning(
"... will do best-effort to dump pickles in stable order but this cannot be done 100% correctly"
)
logging.warning(
"... please upgrade your ZODB & storage: see https://github.com/zopefoundation/ZODB/pull/183 for details."
)
_already_warned_notxnraw.add(stor_name)
return serializeext(txn.extension)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment