Skip to content

Conversation

@dschaefer2
Copy link
Member

Cherry-pick #8858 to 6.2.

Fixes an issue where the --quiet option had no effect when used with swift run and swift build command.

Motivation:

When using the --quiet option with swift run only error messages should be logged.

Modifications:

Add isQuiet property to filter out messages based on the log level during build phases of the native, xcode and swiftbuild build system.
Remove duplicated declaration of the isVerbose property from different targets.
Result:

When the --quiet option is used with the swift run and swift build command only error messages are logged.

…ng#8858)

Fixes an issue where the `--quiet` option had no effect when used with
`swift run` and `swift build` command.

### Motivation:

When using the `--quiet` option with `swift run` only error messages
should be logged.

### Modifications:

- Add `isQuiet` property to filter out messages based on the log level
during build phases of the `native`, `xcode` and `swiftbuild` build
system.
- Remove duplicated declaration of the isVerbose property from different
targets.

### Result:

When the `--quiet` option is used with the `swift run` and `swift build`
command only error messages are logged.
@dschaefer2
Copy link
Member Author

Hmm, tests failing on Linux. I'll double check.

@dschaefer2
Copy link
Member Author

@swift-ci please test

@dschaefer2
Copy link
Member Author

@swift-ci please test windows

@bkhouri
Copy link
Contributor

bkhouri commented Jul 15, 2025

@swift-ci test

@dschaefer2 dschaefer2 merged commit 0f8af55 into swiftlang:release/6.2 Jul 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants