Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodbtools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
zodbtools
Commits
efa9e945
Commit
efa9e945
authored
Jan 30, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zodbdump: use logging.warning instead of deprecated logging.warn
parent
19f230c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
zodbtools/zodbdump.py
zodbtools/zodbdump.py
+9
-3
No files found.
zodbtools/zodbdump.py
View file @
efa9e945
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment