Skip to content

Commit

Permalink
Silence warnings with '--quiet'
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Nov 23, 2023
1 parent df4568b commit f609936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
##### Enhancements

- Added the `--relative-results` option to output result paths relative to the current directory.
- `--quiet` now silences warnings too.

##### Bug Fixes

Expand Down
6 changes: 3 additions & 3 deletions Sources/Shared/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ public final class Logger {

@inlinable
public func debug(_ text: String) {
if configuration.verbose {
baseLogger.debug(text)
}
guard configuration.verbose else { return }
baseLogger.debug(text)
}

@inlinable
public func warn(_ text: String) {
guard !configuration.quiet else { return }
baseLogger.warn(text)
}

Expand Down

0 comments on commit f609936

Please sign in to comment.