Do not print stack traces for DevFS write request failures (#7405)

Each stack trace will yield many async task stacks for every write request
that is in flight.  If the device side is unresponsive and all writes are
failing, then this can generate an overwhelming amount of logs.
This commit is contained in:
Jason Simmons
2017-01-10 10:30:22 -08:00
committed by GitHub
parent 5a2bf18488
commit 8af5520f56

View File

@@ -255,8 +255,8 @@ class _DevFSHttpWriter {
await request.addStream(contents);
HttpClientResponse response = await request.close();
await response.drain();
} catch (e, stackTrace) {
printError('Error writing "${entry.devicePath}" to DevFS: $e\n$stackTrace');
} catch (e) {
printError('Error writing "${entry.devicePath}" to DevFS: $e');
}
if (progressReporter != null) {
_done++;