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
29829f82
Commit
29829f82
authored
Aug 05, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make log rotation code work with a wider range of zLOG versions.
parent
97336dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/ZEO/start.py
src/ZEO/start.py
+9
-1
No files found.
src/ZEO/start.py
View file @
29829f82
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Start the server storage.
"""Start the server storage.
$Id: start.py,v 1.
39 2002/08/05 21:39:0
2 jeremy Exp $
$Id: start.py,v 1.
40 2002/08/05 21:44:2
2 jeremy Exp $
"""
"""
from
__future__
import
nested_scopes
from
__future__
import
nested_scopes
...
@@ -296,9 +296,17 @@ def main(argv):
...
@@ -296,9 +296,17 @@ def main(argv):
def
rotate_logs
():
def
rotate_logs
():
import
zLOG
import
zLOG
# There hasn't been a clear way to reinitialize the MinimalLogger.
# I'll checkin the public initialize() method soon, but also try some
# other strategies for older Zope installs :-(.
init
=
getattr
(
zLOG
,
'initialize'
,
None
)
init
=
getattr
(
zLOG
,
'initialize'
,
None
)
if
init
is
not
None
:
if
init
is
not
None
:
init
()
init
()
return
# This will work if the minimal logger is in use, but not if some
# other logger is active.
import
zLog.MinimalLogger
zLog
.
MinimalLogger
.
_log
.
initialize
()
def
rotate_logs_handler
(
signum
,
frame
):
def
rotate_logs_handler
(
signum
,
frame
):
rotate_logs
()
rotate_logs
()
...
...
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