This isn't about that particular `debug!` use, sorry for the confusion. The function needs the stringified path *twice*, but the second time, the path has already been moved.
I'm using an `Option` so nothing happens when the debug log isn't enabled for that part of the code.