To aid debugging, don't redact strings when building for devprod.

pull/2307/head
Ian Macdonald 3 years ago
parent 8de8f014dd
commit 5f7822563a
No known key found for this signature in database
GPG Key ID: AE4C20556BA626FA

@ -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