Add logging
Small refactor around private repositories