Skip to content

Commit

Permalink
add await()
Browse files Browse the repository at this point in the history
  • Loading branch information
kookubo committed Nov 24, 2023
1 parent 0261b68 commit 6905219
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public class DebugClientExample {
private void output() throws Exception {
try (var session = SessionBuilder.connect(endpoint).withCredential(NullCredential.INSTANCE).create();
var debug = DebugClient.attach(session)) {
debug.logging(message);
debug.logging(LogLevel.INFO, message);
debug.logging(LogLevel.WARN, message);
debug.logging(LogLevel.ERROR, message);
debug.logging(message).await();
debug.logging(LogLevel.INFO, message).await();
debug.logging(LogLevel.WARN, message).await();
debug.logging(LogLevel.ERROR, message).await();
}
}

Expand Down

0 comments on commit 6905219

Please sign in to comment.