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
240261bd
Commit
240261bd
authored
Nov 24, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to support PEP 282-based logger instead of minimal logger.
parent
c974fbd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/ZEO/start.py
src/ZEO/start.py
+11
-7
No files found.
src/ZEO/start.py
View file @
240261bd
...
...
@@ -95,6 +95,8 @@ def setup_signals(storages):
def
main
(
argv
):
me
=
argv
[
0
]
sys
.
path
.
insert
(
0
,
directory
(
me
,
2
))
import
zLOG
zLOG
.
initialize
()
global
LOG
,
INFO
,
ERROR
from
zLOG
import
LOG
,
INFO
,
WARNING
,
ERROR
,
PANIC
...
...
@@ -203,7 +205,7 @@ def main(argv):
if
args
:
if
len
(
args
)
>
1
:
print
usage
print
'Unrecognizd arguments: '
,
" "
.
join
(
args
[
1
:])
print
'Unrecogniz
e
d arguments: '
,
" "
.
join
(
args
[
1
:])
sys
.
exit
(
1
)
fs
=
args
[
0
]
...
...
@@ -211,6 +213,7 @@ def main(argv):
os
.
environ
[
'Z_DEBUG_MODE'
]
=
'1'
if
detailed
:
os
.
environ
[
'STUPID_LOG_SEVERITY'
]
=
'-300'
zLOG
.
initialize
()
set_uid
(
UID
)
...
...
@@ -308,17 +311,18 @@ def main(argv):
def
rotate_logs
():
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
)
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.
# other logger is active. MinimalLogger exists only in Zopes
# pre-2.7.
try
:
import
zLOG.MinimalLogger
zLOG
.
MinimalLogger
.
_log
.
initialize
()
except
ImportError
:
pass
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