Adding logs when sending data