Skip to content

Commit e4afb79

Browse files
committed
More debugging of credentials
1 parent 3b3012e commit e4afb79

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

lib/start-proxy-action.js

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

lib/start-proxy-action.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/start-proxy-action.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export type Credential = {
3030
token?: string;
3131
};
3232

33+
function CredentialToStr(c: Credential): string {
34+
return `Type: ${c.type}; Host: ${c.host}; Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`
35+
}
36+
3337
export type BasicAuthCredentials = {
3438
username: string;
3539
password: string;
@@ -99,7 +103,7 @@ async function runWrapper() {
99103

100104
// Get the configuration options
101105
const credentials = getCredentials();
102-
logger.debug(`Credentials loaded for the following URLs:\n ${credentials.map(c => c.host).join("\n")}`)
106+
logger.info(`Credentials loaded for the following URLs:\n ${credentials.map(c => CredentialToStr(c)).join("\n")}`);
103107

104108
const ca = generateCertificateAuthority();
105109
const proxyAuth = getProxyAuth();

0 commit comments

Comments
 (0)