Log attachment id

When attaching a file to a bug, the attachment id was not being logged.