Skip to content

Commit 2170c2d

Browse files
committed
Added logging
1 parent 322eff4 commit 2170c2d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

internal/process_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def run_processing(self):
104104

105105
self.save_data()
106106

107+
logging.debug("Preparing to generate HAR")
107108
if self.options.har or 'gcs_har_upload' in self.job:
108109
self.generate_har()
109110

@@ -972,6 +973,7 @@ def add_script_timings(self):
972973

973974
def generate_har(self):
974975
"""Generate a HAR file for the current step"""
976+
logging.debug("Generating HAR")
975977
try:
976978
page_data = self.data['pageData']
977979
har = {'log': {
@@ -1034,6 +1036,8 @@ def generate_har(self):
10341036
logging.debug('Uploaded HAR to gs://%s/%s', self.job['gcs_har_upload']['bucket'], gcs_path)
10351037
except Exception:
10361038
logging.exception('Error uploading HAR to Cloud Storage')
1039+
else:
1040+
logging.debug("Not uploading HAR")
10371041

10381042
if uploaded:
10391043
if self.job['success'] and 'bq_datastore' in self.job:

internal/webpagetest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,9 +1625,11 @@ def upload_task_result(self, task):
16251625
self.cpu_pct = None
16261626
self.update_browser_viewport(task)
16271627
if task['run'] == 1 and not task['cached']:
1628+
logging.debug("Collecting CrUX data")
16281629
self.collect_crux_data(task)
16291630
# Post-process the given test run
16301631
try:
1632+
logging.debug("Processing test result")
16311633
from internal.process_test import ProcessTest
16321634
ProcessTest(self.options, self.job, task)
16331635
except Exception:

0 commit comments

Comments
 (0)