Log statement for each of many returns or log statement for each of many execution branches comes to the same number of log statements if you are trying to determine execution sequence as is implied by OP's question. So there is no "logging" advantage to multiple returns here, and there are vast opportunities to make the flow of code clearer by using early exits.
Multiply nested conditional code blocks and loops with a single exit: Yikes! (throws up hands and runs away).
Premature optimization is the root of all job security
|