src/cod: Make logging more useful