Brown discharge!?!

So I'm around 6weeks maybe and I'm freaking out I just started spotting brown yesterday and it stopped then started back up again today idk what to do or if I should be worried. I had a miscarriage almost 2 years ago and I found out I was pregnant because I was having brown discharge then 2 days later found out I was miscarrying. So I'm freaking out. Any advice?