hide API-Key from appearing on the tx log
This commit is contained in:
parent
cff693eb10
commit
7d54780cad
|
@ -63,8 +63,13 @@ public class TextClientLogger extends BaseLogger implements ToolingClientLogger
|
||||||
file.println("\r\n--- "+id+" -----------------\r\nRequest: \r\n");
|
file.println("\r\n--- "+id+" -----------------\r\nRequest: \r\n");
|
||||||
file.println(method+" "+url+" HTTP/1.0");
|
file.println(method+" "+url+" HTTP/1.0");
|
||||||
if (headers != null) {
|
if (headers != null) {
|
||||||
for (String s : headers)
|
for (String s : headers) {
|
||||||
file.println(s);
|
if (s.startsWith("Api-Key")) {
|
||||||
|
file.println("Api-Key: xxxxxxxxxxxxxxxx");
|
||||||
|
} else {
|
||||||
|
file.println(s);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
file.println("");
|
file.println("");
|
||||||
|
|
Loading…
Reference in New Issue