Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
c6af81c3
Commit
c6af81c3
authored
Apr 17, 2004
by
Gintautas Miliauskas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted BaseStorage to use logging instead of zLOG.
parent
1a9ee4b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
trunk/src/ZODB/BaseStorage.py
trunk/src/ZODB/BaseStorage.py
+5
-4
No files found.
trunk/src/ZODB/BaseStorage.py
View file @
c6af81c3
...
...
@@ -13,20 +13,22 @@
##############################################################################
"""Handy standard storage machinery
$Id: BaseStorage.py,v 1.4
7 2004/04/13 22:01:51 fdrake
Exp $
$Id: BaseStorage.py,v 1.4
8 2004/04/17 22:19:30 gintautasm
Exp $
"""
import
cPickle
import
threading
import
time
import
logging
import
UndoLogCompatible
import
POSException
from
persistent.TimeStamp
import
TimeStamp
import
zLOG
from
ZODB
import
POSException
,
utils
from
ZODB.UndoLogCompatible
import
UndoLogCompatible
log
=
logging
.
getLogger
(
"zodb.BaseStorage"
)
class
BaseStorage
(
UndoLogCompatible
):
"""Abstract base class that support storage implementations.
...
...
@@ -82,8 +84,7 @@ class BaseStorage(UndoLogCompatible):
def
__init__
(
self
,
name
,
base
=
None
):
self
.
__name__
=
name
zLOG
.
LOG
(
self
.
__class__
.
__name__
,
zLOG
.
DEBUG
,
"create storage %s"
%
self
.
__name__
)
log
.
debug
(
"create storage %s"
,
self
.
__name__
)
# Allocate locks:
l
=
threading
.
RLock
()
...
...
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