witten
/
luminotes
Archived
1
0
Fork 0

Configured a separate error log where tracebacks go. Should work on all platforms.

This commit is contained in:
Dan Helfman 2008-08-23 20:00:00 -07:00
parent 0711295789
commit fed6bb7b9d
6 changed files with 10 additions and 4 deletions

View File

@ -3,6 +3,7 @@ syntax: glob
*.swp
*~
luminotes.log
luminotes_error.log
luminotes.db
session/*
files/*

View File

@ -9,7 +9,7 @@ settings = {
"session_filter.timeout": 60 * 24 * 365, # one year
"static_filter.root": os.getcwd(),
"server.log_to_screen": False,
"server.log_file": "luminotes.log",
"server.log_file": "luminotes_error.log",
"server.log_access_file": "luminotes.log",
"server.log_tracebacks": True,
"luminotes.launch_browser": True,

View File

@ -8,7 +8,7 @@ settings = {
"base_url_filter.on": True,
"base_url_filter.use_x_forwarded_host": True,
"server.log_to_screen": False,
"server.log_file": "luminotes.log",
"server.log_file": "luminotes_error.log",
"server.log_access_file": "luminotes.log",
"server.log_tracebacks": True,
},

View File

@ -391,7 +391,7 @@ class Root( object ):
import traceback
if not self.__suppress_exceptions:
traceback.print_exc()
cherrypy.log( traceback.format_exc() )
self.report_traceback()
import sys

View File

@ -75,11 +75,15 @@ def main( args ):
sys.exit( 0 )
# remove the existing log file, if any
# remove the existing log files, if any
try:
os.remove( "luminotes.log" )
except OSError:
pass
try:
os.remove( "luminotes_error.log" )
except OSError:
pass
socket.setdefaulttimeout( SOCKET_TIMEOUT_SECONDS )

View File

@ -110,6 +110,7 @@ class InnoScript:
print >> ofi, r"[UninstallDelete]"
print >> ofi, r'Type: files; Name: "{app}\luminotes.log"'
print >> ofi, r'Type: files; Name: "{app}\luminotes_error.log"'
print >> ofi
print >> ofi, r"[UninstallRun]"