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
nexedi
ZODB
Commits
55ffc29c
Commit
55ffc29c
authored
Jan 11, 2015
by
Jim Fulton
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27 from zopefoundation/cleanup-exception-logging
Cleaned up exception logging and changed pins
parents
67aae9fb
1bbaa6e2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
19 deletions
+17
-19
.travis.yml
.travis.yml
+1
-1
buildout.cfg
buildout.cfg
+10
-9
src/ZODB/ConflictResolution.py
src/ZODB/ConflictResolution.py
+1
-1
src/ZODB/Connection.py
src/ZODB/Connection.py
+2
-4
src/ZODB/DB.py
src/ZODB/DB.py
+1
-1
src/ZODB/FileStorage/FileStorage.py
src/ZODB/FileStorage/FileStorage.py
+2
-3
No files found.
.travis.yml
View file @
55ffc29c
...
...
@@ -7,7 +7,7 @@ python:
-
3.3
-
3.4
install
:
-
travis_retry pip install BTrees ZConfig manuel persistent six transaction zc.lockfile zdaemon zope.interface zope.testing zope.testrunner
-
travis_retry pip install BTrees ZConfig manuel persistent six transaction zc.lockfile zdaemon zope.interface zope.testing zope.testrunner
==4.4.4
-
travis_retry pip install -e .
script
:
-
zope-testrunner -u --test-path=src --auto-color --auto-progress
...
...
buildout.cfg
View file @
55ffc29c
...
...
@@ -3,17 +3,18 @@ develop = .
parts =
test
scripts
versions = versions
[versions]
zc.recipe.testrunner = 2.0.0
zc.lockfile = 1.1.0
zope.interface = 4.0.3
ZConfig = 3.0.3
BTrees = 4.0.5
persistent = 4.0.6
transaction = 1.4.1
zdaemon = 4.0.0a1
# Avoid breakage in 4.4.5:
zope.testrunner = 4.4.4
# zc.recipe.testrunner = 2.0.0
# zc.lockfile = 1.1.0
# zope.interface = 4.0.3
# ZConfig = 3.0.3
# BTrees = 4.0.5
# persistent = 4.0.6
# transaction = 1.4.1
# zdaemon = 4.0.0a1
[test]
recipe = zc.recipe.testrunner
...
...
src/ZODB/ConflictResolution.py
View file @
55ffc29c
...
...
@@ -302,7 +302,7 @@ def tryToResolveConflict(self, oid, committedSerial, oldSerial, newpickle,
# the original ConflictError. A client can recover from a
# ConflictError, but not necessarily from other errors. But log
# the error so that any problems can be fixed.
logger
.
e
rror
(
"Unexpected error"
,
exc_info
=
True
)
logger
.
e
xception
(
"Unexpected error"
)
raise
ConflictError
(
oid
=
oid
,
serials
=
(
committedSerial
,
oldSerial
),
data
=
newpickle
)
...
...
src/ZODB/Connection.py
View file @
55ffc29c
...
...
@@ -302,8 +302,7 @@ class Connection(ExportImport, object):
f
()
except
:
# except what?
f
=
getattr
(
f
,
'im_self'
,
f
)
self
.
_log
.
error
(
"Close callback failed for %s"
,
f
,
exc_info
=
sys
.
exc_info
())
self
.
_log
.
exception
(
"Close callback failed for %s"
,
f
)
self
.
__onCloseCallbacks
=
None
self
.
_debug_info
=
()
...
...
@@ -874,8 +873,7 @@ class Connection(ExportImport, object):
raise
except
:
self
.
_log
.
exception
(
"Couldn't load state for %s %s"
,
className
(
obj
),
oid_repr
(
oid
),
exc_info
=
sys
.
exc_info
())
className
(
obj
),
oid_repr
(
oid
))
raise
def
_setstate
(
self
,
obj
):
...
...
src/ZODB/DB.py
View file @
55ffc29c
...
...
@@ -809,7 +809,7 @@ class DB(object):
try
:
self
.
storage
.
pack
(
t
,
self
.
references
)
except
:
logger
.
e
rror
(
"packing"
,
exc_info
=
True
)
logger
.
e
xception
(
"packing"
)
raise
def
setActivityMonitor
(
self
,
am
):
...
...
src/ZODB/FileStorage/FileStorage.py
View file @
55ffc29c
...
...
@@ -429,7 +429,7 @@ class FileStorage(
self
.
_save_index
()
except
:
# Log the error and continue
logger
.
e
rror
(
"Error saving index on close()"
,
exc_info
=
True
)
logger
.
e
xception
(
"Error saving index on close()"
)
def
getSize
(
self
):
return
self
.
_pos
...
...
@@ -1665,8 +1665,7 @@ def _truncate(file, name, pos):
o
.
close
()
break
except
:
logger
.
error
(
"couldn
\
'
t write truncated data for %s"
,
name
,
exc_info
=
True
)
logger
.
exception
(
"couldn
\
'
t write truncated data for %s"
,
name
)
raise
StorageSystemError
(
"Couldn't save truncated data"
)
file
.
seek
(
pos
)
...
...
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