Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsBaumgartner1994 committed Mar 6, 2024
1 parent 857fa57 commit 954355f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ export class TranslatorSettings {
}

async init(){
console.log("INIT TranslatorSettings");
//console.log("INIT TranslatorSettings");
this.translationSettingsService = await this.itemsServiceCreator.getItemsService(TranslatorSettings.TABLENAME);

// Load the API key from the file if the environment variable is set
const apiKeyPath = process.env[ENV_NAME_PATH_TO_SAVE_API_KEY];
console.log("API PATH: "+apiKeyPath);
//console.log("API PATH: "+apiKeyPath);
if (apiKeyPath) {
try{
this.apiKey = fs.readFileSync(path.resolve(apiKeyPath), 'utf-8').trim();
console.log("Found API key: "+this.apiKey)
//console.log("Found API key: "+this.apiKey)
} catch (err){
console.log("File not found yet. Will create it later")
}
Expand Down

0 comments on commit 954355f

Please sign in to comment.