fix: 🐛 Fix sanitizing of tokens when logging (#3036)
This commit is contained in:
1 parent
866972c6c6
commit
838bc37243
1 file changed
+1
-1
@@ -177,7 +177,7 @@ const searchCliCommand = (requestData) => {
|
||||
|
||||
// Log request data and response, but clean up token from log
|
||||
const requestCopy = { ...requestData };
|
||||
delete requestData.token;
|
||||
delete requestCopy.token;
|
||||
log.error(`searchCliCommand(${JSON.stringify(requestCopy)}):`, stderr);
|
||||
|
||||
return generateErrorPromise(stderr);
|
||||
|
||||
Reference in new issue
Block a user