strip all log statements with the endpoint var

This commit is contained in:
Colin Arnott 2017-07-13 18:33:48 +00:00
parent 3c51c914ac
commit ba67e5c847
No known key found for this signature in database
GPG Key ID: 0447A663F7F3E236

View File

@ -57,7 +57,7 @@ func validateToken(p Provider, access_token string, header http.Header) bool {
}
resp, err := api.RequestUnparsedResponse(endpoint, header)
if err != nil {
log.Printf("GET %s", endpoint)
log.Printf("GET %s", stripToken(endpoint))
log.Printf("token validation request failed: %s", err)
return false
}