I encounter the same situation before. They are called sewage flies. Found a solution that works very well for me. Pour boiling hot water into the drainage. Ensure the side walls are scald. After that, pour bleach to the side walls and leave overnight. Hope this works for you.