databricks-cli/libs/flags
Denis Bilenko 54e16d5f62
Always print warnings and errors; clean up format (#2213)
## Changes
- Print warnings and errors by default.
- Fix ErrAlreadyPrinted not to be logged at Error level.
- Format log messages as "Warn: message" instead of "WARN" to make it
more readable and in-line with the rest of the output.
- Only print attributes (pid, mutator, etc) and time when the overall
level is debug (so --debug output has not changed much).

## Tests
- Existing acceptance tests show how warning messages appear in various
test case.
- Added new test for `--debug` output.
- Add sort_lines.py helper to avoid dependency on 'sort' which is
locale-sensitive.
2025-02-07 11:29:40 +00:00
..
json_flag.go Fixed unmarshalling json input into `interface{}` type (#1832) 2024-10-15 12:10:02 +00:00
json_flag_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
log_file_flag.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
log_file_flag_test.go Add structured logging infrastructure (#246) 2023-03-16 14:46:53 +01:00
log_level_flag.go Always print warnings and errors; clean up format (#2213) 2025-02-07 11:29:40 +00:00
log_level_flag_test.go Always print warnings and errors; clean up format (#2213) 2025-02-07 11:29:40 +00:00
output.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
output_test.go Added OpenAPI command coverage (#357) 2023-04-26 13:06:16 +02:00
progress_format.go Add mode default as a valid set value for progress-format flag (#472) 2023-06-14 13:26:56 +02:00
progress_format_test.go Add progress logs for job runs (#276) 2023-03-29 14:58:09 +02:00