Skip to content

Commit

Permalink
Add some console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirks committed Jan 7, 2025
1 parent 47fb1ed commit ac659f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/server/services/Endpoints/google/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ const initializeClient = async ({ req, res, endpointOption, overrideModel, optio
}

const googleKeyJsonFilename = GOOGLE_KEY_JSON_FILENAME ?? '~/data/auth.json';
console.log(`Using Google key from ${googleKeyJsonFilename}`);
let serviceKey = {};
try {
serviceKey = require(googleKeyJsonFilename);
} catch (e) {
// Do nothing
console.error(`Error loading Google key from ${googleKeyJsonFilename}`);
}

const credentials = isUserProvided
Expand Down

0 comments on commit ac659f1

Please sign in to comment.