witten
/
luminotes
Archived
1
0
Fork 0

Now logging properly to a file with config/Desktop.py, and removing the log file on Windows during uninstall.

This commit is contained in:
Dan Helfman 2008-08-23 16:45:34 -07:00
parent 137690d915
commit 2c5ba50863
3 changed files with 11 additions and 1 deletions

View File

@ -8,7 +8,10 @@ settings = {
"session_filter.storage_type": "ram",
"session_filter.timeout": 60 * 24 * 365, # one year
"static_filter.root": os.getcwd(),
"server.log_to_screen": True,
"server.log_to_screen": False,
"server.log_file": "luminotes.log",
"server.log_access_file": "luminotes.log",
"server.log_tracebacks": True,
"luminotes.launch_browser": True,
"luminotes.db_host": None, # use local SQLite database
"luminotes.auto_login_username": "desktopuser",

View File

@ -31,6 +31,9 @@ def change_to_main_dir():
def main( args ):
change_to_main_dir()
if sys.platform.startswith( "win" ):
sys.stderr = sys.stdout
cherrypy.config.update( Common.settings )
if args and "-d" in args:

View File

@ -108,6 +108,10 @@ class InnoScript:
print >> ofi, 'Name: "{group}\Uninstall %s"; Filename: "{uninstallexe}"' % self.name
print >> ofi
print >> ofi, r"[UninstallDelete]"
print >> ofi, r'Type: files; Name: "{app}\luminotes.log"'
print >> ofi
print >> ofi, r"[UninstallRun]"
print >> ofi, r'Filename: "{app}\luminotes.exe"; Parameters: "-k"; RunOnceId: LuminotesShutdown'