The spectrum of integral operators with logarithmically divergent norm