Skip to content

Commit c5efe17

Browse files
meltsufinchingor13
authored andcommitted
---
yaml --- r: 32343 b: refs/heads/autosynth-errorreporting c: aee1e2e h: refs/heads/master i: 32341: a95a58c 32339: 6e12711 32335: 2e5fc67
1 parent 87ab8b7 commit c5efe17

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

  • branches/autosynth-errorreporting/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
@@ -129,7 +129,7 @@ refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
129129
refs/heads/autosynth-containeranalysis: 18d210f81f17cf74864d0db2c29e834302f74f2a
130130
refs/heads/autosynth-datastore: f1efc3dc465174f41041acd56cf29badcec3e5bd
131131
refs/heads/autosynth-dialogflow: 73974cc32e5212aec0126472e0bc1442886fedaf
132-
refs/heads/autosynth-errorreporting: cda0b03316ae6213d51f045c940d8a634dbcbcf2
132+
refs/heads/autosynth-errorreporting: aee1e2e1ee11270c0427da99a010881c5cb8949f
133133
refs/heads/autosynth-firestore: 983c75e4fb1076502c8cac73ef0538bdb10884f3
134134
refs/heads/autosynth-iot: 4025d1804241e74d54950a324dc4f667aeaad4b3
135135
refs/heads/autosynth-kms: 6b65b0f34c12d141031c7288cdc01e550212d0f6

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