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
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
Nicolas Wavrant
ZODB
Commits
69fce97f
Commit
69fce97f
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
844c5ec3
Changes
1
Show 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 @
69fce97f
...
@@ -313,7 +313,7 @@ def rotate_logs():
...
@@ -313,7 +313,7 @@ def rotate_logs():
init
=
getattr
(
zLOG
,
'initialize'
,
None
)
init
=
getattr
(
zLOG
,
'initialize'
,
None
)
if
init
is
not
None
:
if
init
is
not
None
:
init
()
init
()
return
else
:
# This will work if the minimal logger is in use, but not if some
# This will work if the minimal logger is in use, but not if some
# other logger is active. MinimalLogger exists only in Zopes
# other logger is active. MinimalLogger exists only in Zopes
# pre-2.7.
# pre-2.7.
...
@@ -321,7 +321,10 @@ def rotate_logs():
...
@@ -321,7 +321,10 @@ def rotate_logs():
import
zLOG.MinimalLogger
import
zLOG.MinimalLogger
zLOG
.
MinimalLogger
.
_log
.
initialize
()
zLOG
.
MinimalLogger
.
_log
.
initialize
()
except
ImportError
:
except
ImportError
:
pass
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
):
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