这是indexloc提供的服务,不要输入任何密码
Skip to content

Rename AppRunLogger, stop writing status messages that break JSON #172591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matanlurey
Copy link
Contributor

Closes #118907.

It looks like some of the work around splitting had already happened (DaemonLogger), so this ... seems right?

@matanlurey matanlurey requested a review from chingjun July 22, 2025 23:12
@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jul 22, 2025
Copy link
Contributor

@chingjun chingjun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than the name MachineFlagLogger. I feel that MachineLogger or MachineOutputLogger sound more appropriate.

In most places, the variable that stores whether machine mode is turned on is called machine. (Random example)

The function in FlutterCommand that adds the flag is called addMachineOutputFlag

But the word machineFlag is exclusively used to refer to the --machine flag itself (mostly in flutter_command_runner.dart], and never used to refer to whether it is enabled, outside of that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

With the --machine flag Logger.startProgress did not emit valid json
2 participants