Skip to content

Commit

Permalink
Added keyspace to CasquatchTrace
Browse files Browse the repository at this point in the history
  • Loading branch information
tdl-jturner committed Aug 19, 2019
1 parent 443abc9 commit f8ffd19
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ public CasquatchTrace(ResultSet resultSet) {
this.profile = resultSet.getExecutionInfo().getStatement().getExecutionProfileName();
if(resultSet.getExecutionInfo().getStatement().getConsistencyLevel() !=null ) {
this.consistencyLevel = resultSet.getExecutionInfo().getStatement().getConsistencyLevel().name();
this.keyspace = resultSet.getExecutionInfo().getStatement().getKeyspace().toString();
if(resultSet.getExecutionInfo().getStatement().getKeyspace()!=null) {
this.keyspace = resultSet.getExecutionInfo().getStatement().getKeyspace().toString();
}
}
}
}
}

public String toString() {
try {
return new ObjectMapper().writeValueAsString(this);
Expand Down

0 comments on commit f8ffd19

Please sign in to comment.