Skip to content

Commit

Permalink
Add in stderr and stdout to error log
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Sep 13, 2024
1 parent acf50d4 commit 112fe59
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
- name: Test Local Action
id: test-action
uses: ./
env:
LOG_LEVEL: debug
with:
configuration_file: example/postgres-to-csv.yaml
base_folder: insta-integration-test
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/util/insta-infra.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function runServices(instaInfraFolder, serviceNames, envVars) {
} catch (error) {
logger.error(`Failed to run services=${serviceNamesInstaInfra}`)
logger.error(
`Error details, status=${error.status}, message=${error.message}`
`Error details, status=${error.status}, message=${error.message},
stderr=${error.stderr.toString()}, stdout=${error.stdout.toString()}`
)
// eslint-disable-next-line github/array-foreach
serviceNames.forEach(serviceName => {
Expand Down

0 comments on commit 112fe59

Please sign in to comment.