Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
389e4fc3
Commit
389e4fc3
authored
Jan 08, 2003
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log messages when restarting logs.
(Recreating this diff after outdating the wrong revision.) :-(
parent
b8f3851c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
src/ZEO/start.py
src/ZEO/start.py
+12
-9
No files found.
src/ZEO/start.py
View file @
389e4fc3
...
...
@@ -313,15 +313,18 @@ def rotate_logs():
init
=
getattr
(
zLOG
,
'initialize'
,
None
)
if
init
is
not
None
:
init
()
return
# This will work if the minimal logger is in use, but not if some
# other logger is active. MinimalLogger exists only in Zopes
# pre-2.7.
try
:
import
zLOG.MinimalLogger
zLOG
.
MinimalLogger
.
_log
.
initialize
()
except
ImportError
:
pass
else
:
# This will work if the minimal logger is in use, but not if some
# other logger is active. MinimalLogger exists only in Zopes
# pre-2.7.
try
:
import
zLOG.MinimalLogger
zLOG
.
MinimalLogger
.
_log
.
initialize
()
except
ImportError
:
zLOG
.
LOG
(
"ZEO/start.py"
,
zLOG
.
WARNING
,
"Caught USR2, could not rotate logs"
)
return
zLOG
.
LOG
(
"ZEO/start.py"
,
zLOG
.
INFO
,
"Caught USR2, logs rotated"
)
def
rotate_logs_handler
(
signum
,
frame
):
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