Logging to a temp directory instead of the current directory. This allows non-admin/non-root users to run Luminotes Desktop.
This commit is contained in:
parent
6ba890c5b0
commit
5badd47fd7
|
@ -1,5 +1,7 @@
|
|||
import os
|
||||
import os.path
|
||||
import cherrypy
|
||||
from tempfile import gettempdir
|
||||
|
||||
|
||||
settings = {
|
||||
|
@ -9,8 +11,8 @@ settings = {
|
|||
"session_filter.timeout": 60 * 24 * 365, # one year
|
||||
"static_filter.root": os.getcwd(),
|
||||
"server.log_to_screen": False,
|
||||
"server.log_file": "luminotes_error.log",
|
||||
"server.log_access_file": "luminotes.log",
|
||||
"server.log_file": os.path.join( gettempdir(), "luminotes_error.log" ),
|
||||
"server.log_access_file": os.path.join( gettempdir(), "luminotes.log" ),
|
||||
"server.log_tracebacks": True,
|
||||
"luminotes.launch_browser": True,
|
||||
"luminotes.db_host": None, # use local SQLite database
|
||||
|
|
Reference in New Issue