Thank you for the query.
I assume that you are taking antibiotics for this infection. As antibiotics do affect bacteria in whole body, also gastrointestinal tract bacteria are affected by this antibiotic. It causes your natural bacteria destruction what allows other bacteria (the bad once) to grow in the intestines. And this most likely causes diarrhea
If the diarrhea is quite ample and you have also abdominal pain
present, pseudomembranous enterocolitis
should be also considered.
That is why if your diarrhea lasts more than 48 hours, you should visit your doctor and have stool tests performed.
If the diarrhea has appeared recently, you may try probiotics, mild diet and plenty of fluids intake. However antibiotics might be necessary (you can ask your doctor about Rifaximine treatment).
Hope this will help.