Added connect and receive timeout linked to settings
refactored log rails error