From 0324923119113900701e46257d2ee2f896bcafc8 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Tue, 28 Feb 2017 06:54:04 -0800 Subject: [PATCH] Add courtesy notice about bug reports containing sensitive info (#8447) --- .../lib/src/runner/flutter_command_runner.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart index 6b67ef6382c..6bfc8f24d76 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart @@ -70,7 +70,9 @@ class FlutterCommandRunner extends CommandRunner { 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 { 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); }