Added logging to line 1792 to show more exception info