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
16b41525
Commit
16b41525
authored
Jan 24, 2003
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
By default, log to stderr. This is much better than no logging by
default.
parent
4ffb3b88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/ZEO/runzeo.py
src/ZEO/runzeo.py
+12
-0
No files found.
src/ZEO/runzeo.py
View file @
16b41525
...
...
@@ -109,6 +109,7 @@ class ZEOServer:
self
.
options
=
options
def
main
(
self
):
self
.
setup_default_logging
()
self
.
check_socket
()
self
.
clear_socket
()
try
:
...
...
@@ -120,6 +121,17 @@ class ZEOServer:
self
.
close_storages
()
self
.
clear_socket
()
def
setup_default_logging
(
self
):
if
self
.
options
.
config_logger
is
not
None
:
return
if
os
.
getenv
(
"EVENT_LOG_FILE"
)
is
not
None
:
return
if
os
.
getenv
(
"STUPID_LOG_FILE"
)
is
not
None
:
return
# No log file is configured; default to stderr. The logging
# level can still be controlled by {STUPID,EVENT}_LOG_SEVERITY.
os
.
environ
[
"EVENT_LOG_FILE"
]
=
""
def
check_socket
(
self
):
if
self
.
can_connect
(
self
.
options
.
family
,
self
.
options
.
address
):
self
.
options
.
usage
(
"address %s already in use"
%
...
...
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