Don't modify original record object

Modifying the original object leads to the fact that in complex configurations where the logs are sent to the server record also includes extra fields.