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
6989bd81
Commit
6989bd81
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
52d96719
Changes
1
Show 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 @
6989bd81
...
@@ -109,6 +109,7 @@ class ZEOServer:
...
@@ -109,6 +109,7 @@ class ZEOServer:
self
.
options
=
options
self
.
options
=
options
def
main
(
self
):
def
main
(
self
):
self
.
setup_default_logging
()
self
.
check_socket
()
self
.
check_socket
()
self
.
clear_socket
()
self
.
clear_socket
()
try
:
try
:
...
@@ -120,6 +121,17 @@ class ZEOServer:
...
@@ -120,6 +121,17 @@ class ZEOServer:
self
.
close_storages
()
self
.
close_storages
()
self
.
clear_socket
()
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
):
def
check_socket
(
self
):
if
self
.
can_connect
(
self
.
options
.
family
,
self
.
options
.
address
):
if
self
.
can_connect
(
self
.
options
.
family
,
self
.
options
.
address
):
self
.
options
.
usage
(
"address %s already in use"
%
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