Spotting

Is there anyone that is spotting from vagina when they go #2 I’m currently 10 weeks last week I seen doctor and he checked my cervix and just said my cervix was irritated I haven’t had sex for 2 months so I’m not sure what’s causing the spotting.