Commit 8af5520f authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

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.
parent 5a2bf184
...@@ -255,8 +255,8 @@ class _DevFSHttpWriter { ...@@ -255,8 +255,8 @@ class _DevFSHttpWriter {
await request.addStream(contents); await request.addStream(contents);
HttpClientResponse response = await request.close(); HttpClientResponse response = await request.close();
await response.drain(); await response.drain();
} catch (e, stackTrace) { } catch (e) {
printError('Error writing "${entry.devicePath}" to DevFS: $e\n$stackTrace'); printError('Error writing "${entry.devicePath}" to DevFS: $e');
} }
if (progressReporter != null) { if (progressReporter != null) {
_done++; _done++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment