Skip to content

Commit

Permalink
fix(pulumi): Use minimal logging
Browse files Browse the repository at this point in the history
Fixes #154
  • Loading branch information
TriPSs committed Sep 14, 2023
1 parent cc94920 commit c32c883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/utils/use-verbose-logging.ts
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 2 additions & 2 deletions packages/pulumi/src/executors/up/up.impl.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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'
]),
{
Expand Down

0 comments on commit c32c883

Please sign in to comment.