Skip to content

Commit 7db610c

Browse files
committed
add debug logging
1 parent 7d9911c commit 7db610c

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

dist/index.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/exec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ export async function execWithOutput(
1717
},
1818
stderr: (data: Buffer) => {
1919
err += data.toString().trim()
20-
},
21-
debug: (data: string) => {
22-
core.debug(data)
2320
}
2421
}
2522
try {
26-
core.info(`Executing command: ${command} ${args ? args.join(' ') : ''}`)
23+
core.debug(`Executing command: ${command} ${args ? args.join(' ') : ''}`)
2724
await exec.exec(command, args, opt)
2825
} catch {
2926
if (err) {

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ async function requestItems(
119119
)[0].value
120120

121121
const usernameOutputName = `${itemRequest.outputName}_username`
122+
core.debug(`Setting username variable ${usernameOutputName}`)
122123
core.setOutput(usernameOutputName, username)
123124
const passwordOutputName = `${itemRequest.outputName}_password`
125+
core.debug(`Setting password variable ${passwordOutputName}`)
124126
core.setSecret(password)
125127
core.setOutput(passwordOutputName, password)
126128

@@ -138,6 +140,7 @@ async function requestItems(
138140
}
139141

140142
const passwordOutputName = `${itemRequest.outputName}_password`
143+
core.debug(`Setting password variable ${passwordOutputName}`)
141144
core.setSecret(password)
142145
core.setOutput(passwordOutputName, password)
143146

@@ -160,6 +163,7 @@ async function requestItems(
160163
}
161164

162165
const documentOutputName = `${itemRequest.outputName}_filename`
166+
core.debug(`Setting document variable ${documentOutputName}`)
163167
core.setOutput(documentOutputName, filename)
164168

165169
break

0 commit comments

Comments
 (0)