databricks-cli/libs/log
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
..
handler Always print warnings and errors; clean up format (#2213) 2025-02-07 11:29:40 +00:00
context.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
levels.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
logger.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
replace_attr.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
replace_attr_test.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
sdk.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
source.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
source_test.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00