Properly obfuscate query parameters in logs (#3793)

* fix-3789

* fix3789 add unit test
This commit is contained in:
youngerong
2017-05-11 19:17:20 +08:00
committed by Florent Vilmart
parent 22ba39812b
commit e0be653f4c
2 changed files with 26 additions and 0 deletions

View File

@@ -64,6 +64,15 @@ export class LoggerController extends AdaptableController {
}
}
if (e.params) {
for (const key of Object.keys(e.params)) {
if (key === 'password') {
e.params[key] = '********';
break;
}
}
}
return e;
});
}