Prolog is hard to write. When you modify it, you have to understand the logical world state.
Outside of academia, there's no use for prolog.
Prolog certainly has been used in industry; https://en.wikipedia.org/wiki/Prolog#Use_in_industry has some useful discussion, and https://news.ycombinator.com/item?id=29539384 talks about its use in network software.
With regard to this, though:
> When you modify it, you have to understand the logical world state.
That's true of any non-trivial program someone may write and/or modify. Changing without understanding is just going to get your garbage (perhaps functional garbage, but still garbage).
I'm guessing from your comment that you don't work on anything related to AI.
In 1992
I thought declarative programming was the way of the future. I was wrong. It is useful in a small set of cases but generally speaking procedural programming (still) rules the roost.
It seems everybody is learning lessons learnt in the 1950s over and over again.