Skip to content

Commit

Permalink
refactor(Telemetry): Rely on direct evaluation of isTtyTerminal
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Mar 2, 2022
1 parent 21c783d commit e29253f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/utils/telemetry/generate-payload.js
Expand Up @@ -6,7 +6,6 @@ const _ = require('lodash');
const isPlainObject = require('type/plain-object/is');
const isObject = require('type/object/is');
const userConfig = require('@serverless/utils/config');
const { isInteractive } = require('@serverless/utils/log');
const getNotificationsMode = require('@serverless/utils/get-notifications-mode');
const isStandalone = require('../is-standalone-executable');
const { getConfigurationValidationResult } = require('../../classes/config-schema-handler');
Expand Down Expand Up @@ -196,7 +195,7 @@ module.exports = ({

const payload = {
ciName,
isTtyTerminal: isInteractive,
isTtyTerminal: process.stdin.isTTY && process.stdout.isTTY,
cliName: 'serverless',
command,
commandOptionNames,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -25,7 +25,7 @@
"@serverless/aws-lambda-otel-extension-dist": "^0.1.6",
"@serverless/dashboard-plugin": "^6.1.5",
"@serverless/platform-client": "^4.3.2",
"@serverless/utils": "^6.0.2",
"@serverless/utils": "^6.0.3",
"ajv": "^8.10.0",
"ajv-formats": "^2.1.1",
"archiver": "^5.3.0",
Expand Down

0 comments on commit e29253f

Please sign in to comment.