Log: duplicate record and message before emit to work with destructive operations