Refactor logging + improving github resource