Adding logging for curl