Skip to content

Commit

Permalink
log only on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Muntasib-creator committed Sep 26, 2024
1 parent 58ee72e commit 859c190
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Framework/MainDriverApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1502,9 +1502,9 @@ def upload_step_report(run_id: str, tc_id: str, step_seq: int, step_id: int, exe
verify=False
)
duration = round(res.elapsed.total_seconds(), 2)
if res.status_code == 200:
CommonUtil.ExecLog(sModuleInfo, f"Successfully uploaded the step report [{duration} sec]", 1)
else:
# if res.status_code == 200:
# CommonUtil.ExecLog(sModuleInfo, f"Successfully uploaded the step report [{duration} sec]", 1)
if res.status_code == 500:
CommonUtil.ExecLog(sModuleInfo, f"Failed to upload step report [{duration} sec]\n{res.json()}", 3)
except:
CommonUtil.Exception_Handler(sys.exc_info())
Expand Down

0 comments on commit 859c190

Please sign in to comment.