Adding exception to the logger to easily identify problems while saving entity