Commit 03249231 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Add courtesy notice about bug reports containing sensitive info (#8447)

parent e85d3792
......@@ -70,7 +70,9 @@ class FlutterCommandRunner extends CommandRunner<Null> {
help: 'Suppress analytics reporting when this command runs.');
argParser.addFlag('bug-report',
negatable: false,
help: 'Captures a bug report file to submit to the Flutter team.');
help:
'Captures a bug report file to submit to the Flutter team '
'(contains local paths, device identifiers, and log snippets).');
String packagesHelp;
if (fs.isFileSync(kPackagesFileName))
......@@ -188,7 +190,10 @@ class FlutterCommandRunner extends CommandRunner<Null> {
addShutdownHook(() async {
File zipFile = getUniqueFile(fs.currentDirectory, 'bugreport', 'zip');
os.zip(tmp, zipFile);
printStatus('Bug report written to ${zipFile.basename}');
printStatus(
'Bug report written to ${zipFile.basename}.\n'
'Note that this bug report contains local paths, device '
'identifiers, and log snippets.');
}, ShutdownStage.POST_PROCESS_RECORDING);
addShutdownHook(() => tmp.delete(recursive: true), ShutdownStage.CLEANUP);
}
......
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