Fixed logging exception call