Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

gps/solver - Remove SolveParameters.Trace #526

Merged
merged 1 commit into from
May 9, 2017
Merged

gps/solver - Remove SolveParameters.Trace #526

merged 1 commit into from
May 9, 2017

Conversation

jmank88
Copy link
Collaborator

@jmank88 jmank88 commented May 6, 2017

This change is a simplification with no effect on program behavior.
Originally discussed here: #525 (comment)

The Trace field looked like a switch to turn on trace logging, which required a nil validation check on TraceLogger. However, nil checking the logger is the actual mechanism that triggers logging internally, and the logger was passed along even if Trace==false, so Trace was really only a switch to turn on a nil check. All (7) usages set TraceLogger to the result of log.New() which is never nil, so the validation was not necessary, and omitting it does not otherwise change program behavior.

@jmank88
Copy link
Collaborator Author

jmank88 commented May 6, 2017

Can someone with access re-run the failed CI? It appears to be an unrelated arbitrary timing error (TestMonitoredCmd).
https://travis-ci.org/golang/dep/jobs/229554551

@jmank88 jmank88 closed this May 8, 2017
@jmank88 jmank88 reopened this May 8, 2017
@jmank88
Copy link
Collaborator Author

jmank88 commented May 8, 2017

Closed/Opened to re-trigger CI.

@sdboyer
Copy link
Member

sdboyer commented May 9, 2017

OK yeah, I looked through. Whatever weird memories I have of needing that extra flag parameter do not seem to hold up. Thanks 😄

@sdboyer sdboyer merged commit e747186 into golang:master May 9, 2017
ibrasho pushed a commit to ibrasho-forks/dep that referenced this pull request May 10, 2017
gps/solver - Remove SolveParameters.Trace
@jmank88 jmank88 deleted the remove_trace_param branch May 12, 2017 12:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants