While it seems intuitive that programming develops logical thinking, it may be the case that people who program already possessed that skill and programming merely reinforces it.
If it seems intuitive that programming develops logical thinking, you're holding it wrong.
The imperative-procedural paradigm that virtually all mainstream programming is based on hides logic behind a slavish step-by-step drudge. You can't see the program (woods) for the code (trees). This is why you have to have a particularly strong grasp of logical thought before you go into computing -- it's a huge strain keeping the bigger picture in mind while fighting over the minutiae.
Last year I switched a project I was working on from Python to Prolog. People still think I'm mad because it's so much slower in operation, but coding up a component takes hours instead of days because I only have to think about the logic. This is the prototype, and I'm perfectly happy to optimise late, because that way I don't paint myself into a corner.