mirror of https://github.com/databricks/cli.git
## Changes
This reverts commit e7a7e5b95a
.
Job and pipeline runs print progress information now. No need to
continue to rely on logging for this.
## Tests
This commit is contained in:
parent
1ad5fdaaf0
commit
33645ae6ef
|
@ -25,9 +25,7 @@ type LogLevelFlag struct {
|
||||||
|
|
||||||
func NewLogLevelFlag() LogLevelFlag {
|
func NewLogLevelFlag() LogLevelFlag {
|
||||||
return LogLevelFlag{
|
return LogLevelFlag{
|
||||||
// Note: we log at INFO level by default until
|
l: log.LevelDisabled,
|
||||||
// we implement progress reporting to stdout/stderr.
|
|
||||||
l: log.LevelInfo,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
|
|
||||||
func TestLogLevelFlagDefault(t *testing.T) {
|
func TestLogLevelFlagDefault(t *testing.T) {
|
||||||
f := NewLogLevelFlag()
|
f := NewLogLevelFlag()
|
||||||
assert.Equal(t, log.LevelInfo, f.Level())
|
assert.Equal(t, log.LevelDisabled, f.Level())
|
||||||
assert.Equal(t, "info", f.String())
|
assert.Equal(t, "disabled", f.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestLogLevelFlagSetValid(t *testing.T) {
|
func TestLogLevelFlagSetValid(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue