Skip to content

Commit 20ff0b7

Browse files
committed
chore: change debug print
1 parent 44bbf71 commit 20ff0b7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/createGACFile.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@ import { writeSync, existsSync } from "fs";
2020
// Set up Google Application Credentials for use by the Firebase CLI
2121
// https://cloud.google.com/docs/authentication/production#finding_credentials_automatically
2222
export async function createGacFile(googleApplicationCredentials: string) {
23-
console.log("processing GAC credentials: " + googleApplicationCredentials)
2423
try {
2524
if (existsSync(googleApplicationCredentials)) {
2625
return googleApplicationCredentials;
2726
}
28-
console.log("creating temporary file for credentials...")
2927
}
3028
catch (e) {
31-
console.log("failed to check existence of %s\nerror: %O", googleApplicationCredentials, e)
3229
// googleApplicationCredentials is not a path to a file
3330
}
3431
const tmpFile = fileSync({ postfix: ".json" });

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ async function run() {
7070
endGroup();
7171

7272
startGroup("Setting up CLI credentials");
73+
console.log("validating passed credentials: %s", googleApplicationCredentials);
7374
const gacFilename = await createGacFile(googleApplicationCredentials);
74-
if (gacFilename != googleApplicationCredentials) {
75+
console.log("generated credentials: %s", gacFilename)
76+
if (gacFilename !== googleApplicationCredentials) {
7577
console.log(
7678
"Created a temporary file with Application Default Credentials."
7779
);

0 commit comments

Comments
 (0)