Bug 1000837

Summary: RFE: log URL of geolocation server in anaconda.log
Product: [Fedora] Fedora Reporter: Steve Tyler <stephent98>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: anaconda-maint-list, dshea, g.kaviyarasu, jonathan, mkolman, sbueno, stephent98, vanmeeuwen+fedora
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-16 20:14:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Steve Tyler 2013-08-25 20:50:27 UTC
Description of problem:
The installer does not log the URL of the geolocation server in anaconda.log. This RFE would add logging of the URL to anaconda.log.

Having the URL in the log would allow users to debug some geolocation problems, without needing to actually run the installer, by simply entering the URL in a browser or running curl:
$ curl https://geoip.fedoraproject.org/city

While analyzing Bug 1000022, I had to run wireshark and read the installer code to determine what URL was actually being used: Bug 1000022, Comment 4:
Bug 1000022 - time zone: New York is not the centre of the Universe 

Version-Release number of selected component (if applicable):
anaconda-20.8-1.fc20.x86_64

How reproducible:
Presumably always.

Steps to Reproduce:
1. Start the installer.
2. Quit the installer.
3. Examine /tmp/anaconda.log.

Actual results:
The URL of the geolocation server is not logged.
The log only says: "Geolocation provider: Fedora GeoIP"

See anaconda.log in Bug 1000636, Attachment 789745 [details]:
...
18:18:39,129 INFO anaconda: Running Thread: AnaGeolocationRefreshThread (140343858763520)
18:18:39,130 INFO anaconda: Starting geolocation lookup
18:18:39,130 INFO anaconda: Geolocation provider: Fedora GeoIP
18:18:39,149 DEBUG anaconda: Geoloc: URLError for Fedora GeoIP API lookup:
<urlopen error [Errno -2] Name or service not known>
18:18:39,150 INFO anaconda: Geolocation lookup finished in 0.0 seconds
18:18:39,150 INFO anaconda: no results
...

Expected results:
URL is logged.

Additional info:
Example is from:
Bug 1000636 - NameError: global name 'logicals' is not defined 

BTW, the source of this line in anaconda.log is not identified, but presumably it is from the geolocation thread:

18:18:39,150 INFO anaconda: no results

All log records from the geolocation thread should be tagged, so they can be identified.