modified the script fixed the bug, I found out the date range of logs on email content is still getting the yesterday logs, change it to dynamic parameter current date, find an alternative solution to fix the alignment of table data to prevent the distortion of details