mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-22 09:18:13 +00:00
Fixed up logging
This commit is contained in:
@@ -4,6 +4,12 @@ from dss import localsettings
|
||||
|
||||
if os.name == 'posix':
|
||||
LOG_FILE = localsettings.DSS_TEMP_PATH + '/dss.log'
|
||||
if not os.path.exists(LOG_FILE):
|
||||
print("Creating {}".format(LOG_FILE))
|
||||
open(LOG_FILE, 'a').close()
|
||||
else:
|
||||
print("{} already exists.".format(LOG_FILE))
|
||||
|
||||
else:
|
||||
LOG_FILE = 'c:\\temp\\dss.log'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user