Partially Revert "Remove non-functional came_from option" for loggin

commit 44cbfdc31938ee21ae02d03bd2282b3a0bb812af.