adding log
log
more logs
logs and sending email in case pdf does not exist