Skip to content

Commit 0f44518

Browse files
meltsufinchingor13
authored andcommitted
---
yaml --- r: 31543 b: refs/heads/autosynth-containeranalysis c: aee1e2e h: refs/heads/master i: 31541: 539a634 31539: 9ff86b6 31535: bafcdfe
1 parent d22fcf3 commit 0f44518

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

  • branches/autosynth-containeranalysis/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ refs/heads/autosynth-bigquerydatatransfer: 71b6b6d2a992d05999b53e6e130c4fc1c8c8b
126126
refs/heads/autosynth-bigquerystorage: a345f72d7a6358e9fea9dcdae94ec85a27da3088
127127
refs/heads/autosynth-bigtable: 2a6af7e2959fd79c99b8ca5d773f29a6434b546d
128128
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
129-
refs/heads/autosynth-containeranalysis: cda0b03316ae6213d51f045c940d8a634dbcbcf2
129+
refs/heads/autosynth-containeranalysis: aee1e2e1ee11270c0427da99a010881c5cb8949f
130130
refs/heads/autosynth-datastore: d0fc1187000c7a50d8bddd89c3b7cdf1187ecb96
131131
refs/heads/autosynth-dialogflow: 841930a680ebe370c9fc6ae824465f6bc51a5a46
132132
refs/heads/autosynth-errorreporting: 3f176c20b55dfaaa8fc32f28d82b31784b93e636

branches/autosynth-containeranalysis/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,8 @@ public void flush() {
582582

583583
/* Write logs synchronously or asynchronously based on writeSynchronicity setting. */
584584
private void writeLogEntries(Iterable<LogEntry> logEntries, WriteOption... writeOptions) {
585+
if (closed) return;
586+
585587
switch (this.writeSynchronicity) {
586588
case SYNC:
587589
get(writeAsync(logEntries, writeOptions));
@@ -688,6 +690,7 @@ public void close() throws Exception {
688690
return;
689691
}
690692
closed = true;
693+
flush();
691694
rpc.close();
692695
}
693696

0 commit comments

Comments
 (0)