proper log of exception