Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
0522a482
Commit
0522a482
authored
Apr 25, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mergeded detail log support from 2.1 branch and fixed zlogger import ordering.
parent
62401262
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
13 deletions
+25
-13
z2.py
z2.py
+25
-13
No files found.
z2.py
View file @
0522a482
...
...
@@ -240,6 +240,15 @@ Options:
%(program)s -X -w80
-M file
Save detailed logging information to the given file.
This log includes separate entries for:
- The start of a request,
- The start of processing the request in an application thread,
- The start of response output, and
- The end of the request.
Environment settings are of the form: NAME=VALUE.
...
...
@@ -334,6 +343,8 @@ LOCALE_ID=None
# Socket path or port for the FastCGI Server
FCGI_PORT
=
None
# Detailed log file
DETAILED_LOG_FILE
=
''
#
########################################################################
...
...
@@ -370,7 +381,7 @@ try:
raise
'Invalid python version'
,
string
.
split
(
sys
.
version
)[
0
]
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'hz:Z:t:a:d:u:w:f:p:m:Sl:2DP:rF:L:X'
)
'hz:Z:t:a:d:u:w:f:p:m:Sl:2DP:rF:L:X
M:
'
)
DEBUG
=
0
READ_ONLY
=
0
...
...
@@ -434,7 +445,7 @@ try:
elif
o
==
'-F'
:
if
v
==
'-'
:
v
=
''
FCGI_PORT
=
v
elif
o
==
'-M'
:
DETAILED_LOG_FILE
=
v
__builtins__
.
__debug__
=
DEBUG
...
...
@@ -501,19 +512,18 @@ if Zpid and not READ_ONLY:
zdaemon
.
run
(
sys
.
argv
,
os
.
path
.
join
(
INSTANCE_HOME
,
Zpid
))
# Import Zope (or Main), and thus get SOFTWARE_HOME and INSTANCE_HOME
exec
"import "
+
MODULE
in
{}
# Uncomment to turn on Debug Logging
# from ZServer import DebugLogger
# logfile=os.path.join(INSTANCE_HOME,'var/debug.log')
# DebugLogger.log=DebugLogger.DebugLogger(logfile).log
# Import logging support
import
zLOG
import
ZLogger
if
DETAILED_LOG_FILE
:
from
ZServer
import
DebugLogger
logfile
=
os
.
path
.
join
(
INSTANCE_HOME
,
'var'
,
DETAILED_LOG_FILE
)
DebugLogger
.
log
=
DebugLogger
.
DebugLogger
(
logfile
).
log
# Import Zope (or Main), and thus get SOFTWARE_HOME and INSTANCE_HOME
exec
"import "
+
MODULE
in
{}
if
READ_ONLY
:
zLOG
.
_stupid_dest
=
sys
.
stderr
else
:
...
...
@@ -542,7 +552,8 @@ if MODULE=='Zope':
from
ZServer
import
resolver
,
logger
,
asyncore
from
ZServer
import
zhttp_server
,
zhttp_handler
,
PCGIServer
,
FTPServer
,
FCGIServer
from
ZServer
import
zhttp_server
,
zhttp_handler
,
from
ZServer
import
PCGIServer
,
FTPServer
,
FCGIServer
from
ZServer
import
secure_monitor_server
...
...
@@ -664,6 +675,7 @@ except:
pass
# if it hasn't failed at this point, create a .pid file.
if
not
READ_ONLY
:
pf
=
open
(
PID_FILE
,
'w'
)
...
...
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