Commit 5e8bed33 by Jesse Zoldak

DEBUG DO NOT MERGE make the ANSIBLE_TIMER_LOG json timing log file rw for everyone

parent 9b547dd5
......@@ -185,6 +185,11 @@ class JsonTimingLogger(TimingLogger):
LOGGER.exception("Unable to write json timing log messages")
try:
os.chmod(log_path, 0666)
except Exception:
LOGGER.exception("Could not make the ANSIBLE_TIMER_LOG json timing log file rw for everyone.")
try:
print("ANSIBLE_TIMER_LOG contents of the file are: ")
with open(log_path, 'r') as log_file:
print log_file.read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment