diff --git a/README.md b/README.md index 304c444..8e0d03f 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,14 @@ You can download the executable jars from [releases]( https://github.com/opsgeni ## Parameters Options: * --apiKey - Opsgenie Integration API Key. (API Key is mandatory) + Opsgenie Integration API Key. (API Key is mandatory) + + Access Rights: [Read and Configuration Access](https://docs.opsgenie.com/docs/api-key-management#section-access-rights-) * --backupPath Backup directory - Default: /Users/baris/git/client-configuration-backup + + Default: /Users/baris/git/client-configuration-backup * --opsgenieHost OpsGenie host to use - Default: https://api.opsgenie.com + + Default: https://api.opsgenie.com * --sshKeyPath Ssh key path * --sshPassPhrase diff --git a/backup-export/src/main/java/com/opsgenie/tools/backup/ExportMain.java b/backup-export/src/main/java/com/opsgenie/tools/backup/ExportMain.java index 7bcb4cd..a0cb442 100644 --- a/backup-export/src/main/java/com/opsgenie/tools/backup/ExportMain.java +++ b/backup-export/src/main/java/com/opsgenie/tools/backup/ExportMain.java @@ -67,13 +67,14 @@ public static void main(String[] args) throws Exception { try { final GetAccountInfoResponse info = accountApi.getInfo(); logger.info("Account name is " + info.getData().getName() + "\n"); + logger.info("OpsGenie host is " + opsGenieHost + "\n"); ConfigurationExporter exporter = new ConfigurationExporter(properties, rateLimitManager); exporter.export(); logger.info("Finished"); } catch (Exception e) { - logger.error("Could not connect to host: " + opsGenieHost); + logger.error("Could not finish task: " + e.getMessage()); System.exit(1); } }