Now logging properly to a file with config/Desktop.py, and removing the log file on Windows during uninstall.
This commit is contained in:
parent
137690d915
commit
2c5ba50863
|
@ -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",
|
||||
|
|
|
@ -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:
|
||||
|
|
4
setup.py
4
setup.py
|
@ -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'
|
||||
|
||||
|
|
Reference in New Issue
Block a user