mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
fixes:#1371 - migration log write permissions
This commit is contained in:
parent
ed17be242d
commit
1d2d043c29
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user