diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 0e211a0..ad006d5 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -33,6 +33,7 @@ public static void main(String[] args) { // If the "RememberME" option is set to true in your first login you can access TileDB-Cloud without the need // to pass any credentials from now on. Just create the client as follows: // TileDBClient tileDBClient = new TileDBClient(); + tileDBClient.setDebugging(true); // Uncomment to run whichever example you want diff --git a/src/main/java/io/tiledb/cloud/TileDBClient.java b/src/main/java/io/tiledb/cloud/TileDBClient.java index d4fd21b..eac29e7 100644 --- a/src/main/java/io/tiledb/cloud/TileDBClient.java +++ b/src/main/java/io/tiledb/cloud/TileDBClient.java @@ -119,6 +119,14 @@ private static boolean loadCloudJSONFileFromHome() throws IOException { return true; } + /** + * Enables debugging logs + * @param flag True to enable + */ + public void setDebugging(boolean flag){ + this.apiClient.setDebugging(flag); + } + /** * This method throws a warning if there is no login information in the json file or passed * as a parameter. If the login information has data it calls another helper method to save it.