Skip to content

Commit 6eaa71e

Browse files
committed
bug 1400258 - write cot verification logs to live_backing.log
Fixes #179.
1 parent 83840ad commit 6eaa71e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scriptworker/cot/verify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ async def verify_chain_of_trust(chain):
21812181
CoTError: on failure
21822182
21832183
"""
2184-
log_path = os.path.join(chain.context.config["task_log_dir"], "chain_of_trust.log")
2184+
log_path = os.path.join(chain.context.config["task_log_dir"], "live_backing.log")
21852185
scriptworker_log = logging.getLogger('scriptworker')
21862186
with contextual_log_handler(
21872187
chain.context, path=log_path, log_obj=scriptworker_log,

scriptworker/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def get_log_filehandle(context):
112112
"""
113113
log_file_name = get_log_filename(context)
114114
makedirs(context.config['task_log_dir'])
115-
with open(log_file_name, "w", encoding="utf-8") as filehandle:
115+
with open(log_file_name, "a", encoding="utf-8") as filehandle:
116116
yield filehandle
117117

118118

0 commit comments

Comments
 (0)