Skip to content

Commit 4c73b8a

Browse files
meltsufinchingor13
authored andcommitted
---
yaml --- r: 32763 b: refs/heads/autosynth-iot c: aee1e2e h: refs/heads/master i: 32761: 753e88b 32759: 80ba9cc
1 parent 3b506dc commit 4c73b8a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

  • branches/autosynth-iot/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
@@ -131,7 +131,7 @@ refs/heads/autosynth-datastore: f1efc3dc465174f41041acd56cf29badcec3e5bd
131131
refs/heads/autosynth-dialogflow: 73974cc32e5212aec0126472e0bc1442886fedaf
132132
refs/heads/autosynth-errorreporting: effe8001d110ad584187b30aafc473db0dd4a15f
133133
refs/heads/autosynth-firestore: e79eeb26930dfae4439424ad2fda5874eeca54c8
134-
refs/heads/autosynth-iot: cda0b03316ae6213d51f045c940d8a634dbcbcf2
134+
refs/heads/autosynth-iot: aee1e2e1ee11270c0427da99a010881c5cb8949f
135135
refs/heads/autosynth-kms: 6b65b0f34c12d141031c7288cdc01e550212d0f6
136136
refs/heads/autosynth-language: e73905aa7672afa47240e65b25c087207f4594f9
137137
refs/heads/autosynth-os-login: 123ba209c5769d0ee067e0ce5848bec13b42a4f4

branches/autosynth-iot/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)