I'm studying logic, and have been through most of Goldrei's "Propositional and Predicate Calculus: A Model of Argument", which is quite good. I've also perused quite a few other logic books, including Stoll's "Set theory and Logic". All the logic books start out with some set theory, or assume the reader is familiar with certain set theory results prior to commencing the logic chapters. The reason is that you need some set theory to complete the logic proofs. For example, Goldrei assumes you know how to prove that a countable union of countable sets is countable and this is required in Godel's completeness theorem in chapter 5.
I must admit that I had difficulty understanding Godel's completeness theorem from the lay explanations I read prior to reading Goldrei and it's only by actually going through the definitions and proofs that I have a better understanding of its meaning.
In the reverse direction, do you need logic to understand set theory? You need an understanding of how to apply the logic and inference axioms (and you need these to study any branch of mathematics), but this is not really what logic is about. It's about reasoning about the process of mathematical reasoning itself and coming up with results like the soundness theorem, completeness theorem, incompleteness theorems etc. I believe these aren't pre-requisites to set theory, although they may give you an appreciation of the strengths and limitations of the axiomatic approach.
Or, in other words, when we do logic, we need to cite (some) set theoretic results, but when we do set theory (or any other branch of maths), we don’t really need to cite any results from logic (although happy to be corrected on this point).