Add logging parameter to getLoopClosure by id