Skip to content

Commit

Permalink
chore: add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
balajisa09 committed Jan 14, 2024
1 parent ca3ec67 commit e1c930c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@
temp_file_name = secret_config.file_key.replace("vault_access.json","vault_access_temp.json")
vaultClient.initializeVault(vault_key_shares,vault_key_threshold,temp_file_name)
else:
logger.info("Backup or keys doesn't exist, initializing vault from scratch..")
if(restore_enabled=="false"):
logger.info("Vault restore disabled, initializing vault from scratch..")
else:
logger.info("Backup or keys doesn't exist, initializing vault from scratch..")
vaultClient.initializeVault(vault_key_shares,vault_key_threshold,file_key)

else:
Expand Down

0 comments on commit e1c930c

Please sign in to comment.