mirror of https://github.com/databricks/cli.git
keep printing attrs
This commit is contained in:
parent
667876d78c
commit
6c203fb957
|
@ -188,6 +188,8 @@ func (h *friendlyHandler) Handle(ctx context.Context, r slog.Record) error {
|
|||
state.appendf("%s ", h.coloredLevel(r))
|
||||
state.append(h.sprint(ttyColorMessage, r.Message))
|
||||
|
||||
if h.opts.Level.Level() <= slog.LevelDebug {
|
||||
|
||||
// Handle state from WithGroup and WithAttrs.
|
||||
goas := h.goas
|
||||
if r.NumAttrs() == 0 {
|
||||
|
@ -212,6 +214,8 @@ func (h *friendlyHandler) Handle(ctx context.Context, r slog.Record) error {
|
|||
return true
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// Add newline.
|
||||
state.append("\n")
|
||||
|
||||
|
|
Loading…
Reference in New Issue