Commit 64ece5d3 authored by Jim Fulton's avatar Jim Fulton

Moved logging options before Zope module import.

parent 4461148e
......@@ -516,6 +516,11 @@ if Zpid and not READ_ONLY:
import zLOG
import ZLogger
if READ_ONLY:
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(INSTANCE_HOME, 'var', DETAILED_LOG_FILE)
......@@ -524,11 +529,6 @@ if DETAILED_LOG_FILE:
# 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:
zLOG.log_write = ZLogger.ZLogger.log_write
# Location of the ZServer log file. This file logs all ZServer activity.
# You may wish to create different logs for different servers. See
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment