forked from expo/troggle
Allow being unable to open local LOGFILE.
This commit is contained in:
parent
501a5122d8
commit
7af6c3cb9c
@ -39,10 +39,8 @@ try:
|
|||||||
filename=settings.LOGFILE,
|
filename=settings.LOGFILE,
|
||||||
filemode='w')
|
filemode='w')
|
||||||
except:
|
except:
|
||||||
subprocess.call(settings.FIX_PERMISSIONS)
|
# Opening of file for writing is going to fail currently, so decide it doesn't matter for now
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
pass
|
||||||
filename=settings.LOGFILE,
|
|
||||||
filemode='w')
|
|
||||||
|
|
||||||
#This class is for adding fields and methods which all of our models will have.
|
#This class is for adding fields and methods which all of our models will have.
|
||||||
class TroggleModel(models.Model):
|
class TroggleModel(models.Model):
|
||||||
|
Loading…
Reference in New Issue
Block a user