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
cc6c1ff2
Commit
cc6c1ff2
authored
Jan 17, 2003
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the automatic <logger> section processing from zdoptions.
parent
feebb73e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
src/ZEO/runzeo.py
src/ZEO/runzeo.py
+2
-18
No files found.
src/ZEO/runzeo.py
View file @
cc6c1ff2
...
@@ -87,22 +87,11 @@ class ZEOOptionsMixin:
...
@@ -87,22 +87,11 @@ class ZEOOptionsMixin:
self
.
add
(
"monitor_address"
,
None
,
"m:"
,
"monitor="
,
self
.
add
(
"monitor_address"
,
None
,
"m:"
,
"monitor="
,
self
.
handle_monitor_address
)
self
.
handle_monitor_address
)
def
load_logconf
(
self
):
if
self
.
configroot
.
logger
is
not
None
:
zLOG
.
set_initializer
(
self
.
log_initializer
)
zLOG
.
initialize
()
def
log_initializer
(
self
):
from
zLOG
import
EventLogger
logger
=
self
.
configroot
.
logger
()
for
handler
in
logger
.
handlers
:
if
hasattr
(
handler
,
"reopen"
):
handler
.
reopen
()
EventLogger
.
event_logger
.
logger
=
logger
class
ZEOOptions
(
ZDOptions
,
ZEOOptionsMixin
):
class
ZEOOptions
(
ZDOptions
,
ZEOOptionsMixin
):
logsectionname
=
"logger"
def
__init__
(
self
):
def
__init__
(
self
):
self
.
schemadir
=
os
.
path
.
dirname
(
__file__
)
self
.
schemadir
=
os
.
path
.
dirname
(
__file__
)
ZDOptions
.
__init__
(
self
)
ZDOptions
.
__init__
(
self
)
...
@@ -110,11 +99,6 @@ class ZEOOptions(ZDOptions, ZEOOptionsMixin):
...
@@ -110,11 +99,6 @@ class ZEOOptions(ZDOptions, ZEOOptionsMixin):
self
.
add
(
"storages"
,
"storages"
,
self
.
add
(
"storages"
,
"storages"
,
required
=
"no storages specified; use -f or -C"
)
required
=
"no storages specified; use -f or -C"
)
def
realize
(
self
,
*
args
):
ZDOptions
.
realize
(
self
,
*
args
)
if
self
.
configroot
is
not
None
:
self
.
load_logconf
()
class
ZEOServer
:
class
ZEOServer
:
...
...
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