fixes:#1371 - migration log write permissions

This commit is contained in:
Wayne Witzel III 2016-04-01 09:06:40 -04:00
parent ed17be242d
commit 1d2d043c29

View File

@ -15,7 +15,7 @@ def log_migration(wrapped):
as it runs, Django resets this, so we use a decorator
to re-add the handler for each method.
'''
handler = logging.FileHandler("tower_rbac_migrations.log", mode="a", encoding="UTF-8")
handler = logging.FileHandler("/tmp/tower_rbac_migrations.log", mode="a", encoding="UTF-8")
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setLevel(logging.DEBUG)
handler.setFormatter(formatter)