File tree Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.13.2
2
+ * Gracefully handle cases where logging fails.
3
+
1
4
## 0.13.1
2
5
* Fix dependency on ` package:gcloud ` to version ` 0.8.0 ` .
3
6
Original file line number Diff line number Diff line change @@ -371,17 +371,21 @@ class SharedLoggingService {
371
371
..partialSuccess =
372
372
false /* for now we want to get notified if something goes wrong */ ;
373
373
_entries.clear ();
374
- _clientStub.writeLogEntries (request).catchError ((error, stack) {
375
- // In case the logging API failed, we'll write the error message to
376
- // stderr. The logging daemon on the VM will make another attempt at
377
- // uploading stderr via the logging API.
378
- stderr.writeln ('An error occured while writing log entries:\n '
379
- 'Error:$error \n '
380
- '$stack ' );
381
- }).whenComplete (() {
382
- _outstandingRequests-- ;
383
- _maybeClose ();
384
- });
374
+ unawaited (() async {
375
+ try {
376
+ await _clientStub.writeLogEntries (request);
377
+ } catch (error, stack) {
378
+ // In case the logging API failed, we'll write the error message to
379
+ // stderr. The logging daemon on the VM will make another attempt at
380
+ // uploading stderr via the logging API.
381
+ stderr.writeln ('An error occured while writing log entries:\n '
382
+ 'Error:$error \n '
383
+ '$stack ' );
384
+ } finally {
385
+ _outstandingRequests-- ;
386
+ _maybeClose ();
387
+ }
388
+ }());
385
389
}
386
390
387
391
Future close () {
Original file line number Diff line number Diff line change 1
1
name : appengine
2
- version : 0.13.1
2
+ version : 0.13.2
3
3
description : >-
4
4
Support for using Dart as a custom runtime on
5
5
Google App Engine Flexible Environment
6
6
homepage : https://github.com/dart-lang/appengine
7
7
8
8
environment :
9
- sdk : ' >=2.12 .0 <3.0.0'
9
+ sdk : ' >=2.14 .0 <3.0.0'
10
10
11
11
dependencies :
12
12
fixnum : ^1.0.0
You can’t perform that action at this time.
0 commit comments