add missed log and fix dev env

This commit is contained in:
Chris Meyers
2016-07-22 10:04:02 -04:00
parent fd098e64dc
commit 811d6dfe3d
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,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("/tmp/tower_rbac_migrations.log", mode="a", encoding="UTF-8")
handler = logging.FileHandler("/var/log/tower/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)