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
898cd99a
Commit
898cd99a
authored
Nov 24, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to support PEP282-based logger instead of minimal logger/ZLogger.
parent
c799931c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
z2.py
z2.py
+7
-12
No files found.
z2.py
View file @
898cd99a
...
...
@@ -537,6 +537,13 @@ if os.name == 'posix':
# will write to this pidfile instead of Zope.
PID_FILE
=
os
.
path
.
join
(
CLIENT_HOME
,
'Z2.pid'
)
# Import logging support
import
zLOG
if
not
READ_ONLY
:
# possibly write an event log file
zLOG
.
initialize
()
if
USE_DAEMON
and
not
READ_ONLY
:
import
App.FindHomes
sys
.
ZMANAGED
=
1
...
...
@@ -553,18 +560,6 @@ def _warn_nobody():
"dedicated user account for Zope"
)
)
try
:
# Import logging support
import
zLOG
import
ZLogger
if
READ_ONLY
:
if
hasattr
(
zLOG
,
'_set_stupid_dest'
):
zLOG
.
_set_stupid_dest
(
sys
.
stderr
)
else
:
zLOG
.
_stupid_dest
=
sys
.
stderr
else
:
zLOG
.
log_write
=
ZLogger
.
ZLogger
.
log_write
if
DETAILED_LOG_FILE
:
from
ZServer
import
DebugLogger
logfile
=
os
.
path
.
join
(
CLIENT_HOME
,
DETAILED_LOG_FILE
)
...
...
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