added logging to s3 file copy function