Merge pull request #2307 from ianmacd/pr27

To aid debugging, don't redact strings when building for devprod.
pull/2315/head
Audric Ackermann 3 years ago committed by GitHub
commit e3edff45bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,11 +98,9 @@ const removeNewlines = (text: string) => text.replace(/\r?\n|\r/g, '');
// redactSensitivePaths :: String -> String
const redactSensitivePaths = redactPath(APP_ROOT_PATH);
const isDev = (process.env.NODE_APP_INSTANCE || '').startsWith('devprod');
// redactAll :: String -> String
export const redactAll = compose(
redactSensitivePaths,
redactGroupIds,
redactSessionID,
redactSnodeIP,
redactServerUrl
);
export const redactAll = !isDev
? compose(redactSensitivePaths, redactGroupIds, redactSessionID, redactSnodeIP, redactServerUrl)
: (text: string) => text;

Loading…
Cancel
Save