Skip to content

Commit d7f6ce9

Browse files
dzinadgithub-actions[bot]
authored andcommitted
obfuscate token in RouteShieldError#irl
GitOrigin-RevId: 9dc78ce6495e4b60123cac3dc4bd5591ac63111b
1 parent cb6999e commit d7f6ce9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Obfuscated access token in `RouteShieldError#url#toString`.

tripdata/src/main/java/com/mapbox/navigation/tripdata/shield/model/RouteShieldError.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.mapbox.navigation.tripdata.shield.model
22

3+
import com.mapbox.navigation.utils.internal.obfuscateAccessToken
4+
35
/**
46
* Data structure that holds information about errors in downloading route shields.
57
* @property url that was downloaded and resulted in an error
@@ -35,6 +37,9 @@ class RouteShieldError internal constructor(
3537
* Returns a string representation of the object.
3638
*/
3739
override fun toString(): String {
38-
return "RouteShieldError(url='$url', errorMessage='$errorMessage')"
40+
return "RouteShieldError(" +
41+
"url='${url?.obfuscateAccessToken()}', " +
42+
"errorMessage='$errorMessage'" +
43+
")"
3944
}
4045
}

0 commit comments

Comments
 (0)