Skip to content

Commit 68e1455

Browse files
adding setDebugging(boolean flag) mtehod in TileDBClient
1 parent 5eda456 commit 68e1455

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/main/java/examples/Examples.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static void main(String[] args) {
3333
// If the "RememberME" option is set to true in your first login you can access TileDB-Cloud without the need
3434
// to pass any credentials from now on. Just create the client as follows:
3535
// TileDBClient tileDBClient = new TileDBClient();
36+
tileDBClient.setDebugging(true);
3637

3738

3839
// Uncomment to run whichever example you want

src/main/java/io/tiledb/cloud/TileDBClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ private static boolean loadCloudJSONFileFromHome() throws IOException {
119119
return true;
120120
}
121121

122+
/**
123+
* Enables debugging logs
124+
* @param flag True to enable
125+
*/
126+
public void setDebugging(boolean flag){
127+
this.apiClient.setDebugging(flag);
128+
}
129+
122130
/**
123131
* This method throws a warning if there is no login information in the json file or passed
124132
* as a parameter. If the login information has data it calls another helper method to save it.

0 commit comments

Comments
 (0)