Avoid logging csr
Summary: I unintentionally added logging of csr certificates in my previous diff. This diff makes sure we're not logging them anymore. Reviewed By: mweststrate Differential Revision: D31609709 fbshipit-source-id: e43b348dbd62653f8a6e9089930c2a3699b29a12
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1c363cc5db
commit
976e53ff9b
@@ -9,6 +9,7 @@
|
||||
|
||||
import {ClientQuery} from 'flipper-common';
|
||||
import {CertificateExchangeMedium} from '../utils/CertificateProvider';
|
||||
import {SecureClientQuery} from './ServerAdapter';
|
||||
|
||||
/**
|
||||
* Transforms the certificate exchange medium type as number to the
|
||||
@@ -48,3 +49,7 @@ export function appNameWithUpdateHint(query: ClientQuery): string {
|
||||
}
|
||||
return query.app;
|
||||
}
|
||||
|
||||
export function cloneClientQuerySafeForLogging(clientQuery: SecureClientQuery) {
|
||||
return {...clientQuery, csr: !clientQuery.csr ? clientQuery.csr : '<hidden>'};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user