From c32c883bf75cbf72e13439662087eebc954b2495 Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Thu, 14 Sep 2023 13:24:36 +0200 Subject: [PATCH] fix(pulumi): Use minimal logging Fixes #154 --- packages/core/src/utils/use-verbose-logging.ts | 2 ++ packages/pulumi/src/executors/up/up.impl.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/utils/use-verbose-logging.ts b/packages/core/src/utils/use-verbose-logging.ts index 0b7225c6..3262d663 100644 --- a/packages/core/src/utils/use-verbose-logging.ts +++ b/packages/core/src/utils/use-verbose-logging.ts @@ -1,3 +1,5 @@ import { isCI } from './is-ci' export const USE_VERBOSE_LOGGING = isCI() || Boolean(process.env.NX_VERBOSE_LOGGING) + +export const USE_VERBOSE_LOGGING_MINIMAL = Boolean(process.env.NX_VERBOSE_LOGGING || process.env. ACTIONS_RUNNER_DEBUG) diff --git a/packages/pulumi/src/executors/up/up.impl.ts b/packages/pulumi/src/executors/up/up.impl.ts index 602b4527..aa4de528 100644 --- a/packages/pulumi/src/executors/up/up.impl.ts +++ b/packages/pulumi/src/executors/up/up.impl.ts @@ -1,5 +1,5 @@ import { ExecutorContext } from '@nx/devkit' -import { buildCommand, USE_VERBOSE_LOGGING } from '@nx-extend/core' +import { buildCommand, USE_VERBOSE_LOGGING_MINIMAL } from '@nx-extend/core' import { execSync } from 'child_process' import { which } from 'shelljs' @@ -28,7 +28,7 @@ export default async function creatExecutor( options.skipPreview && '--skip-preview', options.yes && '--yes', options.suppressOutputs && '--suppress-outputs', - USE_VERBOSE_LOGGING && '--debug', + USE_VERBOSE_LOGGING_MINIMAL && '--debug', options.json && '--json' ]), {