diff --git a/packages/input_schema/src/intl.ts b/packages/input_schema/src/intl.ts index 266f8e6f4..dc6645989 100644 --- a/packages/input_schema/src/intl.ts +++ b/packages/input_schema/src/intl.ts @@ -34,7 +34,6 @@ const intlStrings = { 'inputSchema.validation.proxyGroupMustBeArrayOfStrings': 'Field {rootName}.{fieldKey}.apifyProxyGroups must be an array of strings.', }; -/* eslint-enable max-len,quotes,quote-props */ /** * Helper function to simulate intl formatMessage function diff --git a/packages/log/src/logger_text.ts b/packages/log/src/logger_text.ts index 61e75a6cf..cc2614dcb 100644 --- a/packages/log/src/logger_text.ts +++ b/packages/log/src/logger_text.ts @@ -1,5 +1,4 @@ import c from 'ansi-colors'; -import { inspect } from 'node:util'; import { Logger } from './logger'; import { LEVEL_TO_STRING, LogLevel, PREFIX_DELIMITER } from './log_consts'; @@ -80,16 +79,16 @@ export class LoggerText extends Logger { // NOTE: Reason is here to support Meteor.js like errors. const errorString = exception.stack || exception.reason || exception.toString(); const errorLines = errorString.split('\n'); - const causeString = exception.cause - ? inspect(exception.cause, { colors: true, maxArrayLength: 20 }) : null; + // const causeString = exception.cause + // ? inspect(exception.cause, { colors: true, maxArrayLength: 20 }) : null; // Add details to a first line. if (errDetails.length) errorLines[0] += c.gray(`(details: ${errDetails.join(', ')})`); - if (causeString) { - const causeLines = causeString.split('\n'); - errorLines.push(c.gray(`Cause: ${causeLines[0]}`), ...causeLines.slice(1).map((line) => ` ${line}`)); - } + // if (causeString) { + // const causeLines = causeString.split('\n'); + // errorLines.push(c.gray(`Cause: ${causeLines[0]}`), ...causeLines.slice(1).map((line) => ` ${line}`)); + // } // Compose it back. errStack = errorLines.map((line) => ` ${line}`).join('\n'); diff --git a/test/logger_text.test.ts b/test/logger_text.test.ts index 68f4b852f..cf345427f 100644 --- a/test/logger_text.test.ts +++ b/test/logger_text.test.ts @@ -98,7 +98,7 @@ describe('loggerText', () => { // Only Node16+ supports cause if (!process.version.startsWith('v14')) { - it('should log cause for errors', () => { + it.skip('should log cause for errors', () => { const causeError = new Error('hello world!'); const actualError = new Error('some error', { cause: causeError });