<human>: Condense the text into a few key points

EDIT:  I CAN'T ADD A FLAIR ON MY DEVICE RIGHT NOW FOR SOME REASON

Hello people, I've recently had an issue come up in my life and I'm very conflicted as to what I should do.  A few days ago, I was talking with a very good friend of mine (who I shall refer to as person A for the remainder of this post) online and I told him something that I told him not to tell.  About an hour later I had another friend of mine text me about that thing I told Person A not to tell (and I specifically told him not to tell this friend).  So I got mad and went to Person A and they confessed because they thought it would be best to tell the other friend and they apologized and promised to not do that again (by the way, the thing I didn't want told to the other friend wasn't really that bad, I was getting very annoyed because my neighbors were being loud late at night but I had mentioned to Person A that I had texted that friend earlier and that friend hadn't responded yet and I've been known to be impatient).  I accepted Person A's apology but I'm still upset that they did that.  Person A is family to me and it really upset me that they did that.  

Right now, I have two opinions on that to think of what Person A did and I don't know what to think:

1)  What they did was unacceptable and I should quit telling them information like that because they could have released more private information.

2)  While what they did was wrong, I should still trust them because they didn't want me to get mad at the other friend and wanted to avoid drama.

So, what should I do about this situation?
<bot>: friend a told friend b something I didn't want them to tell them because friend a thought I was getting mad at the friend b and I don't know if I should trust friend a anymore.