()
| 116 | } |
| 117 | |
| 118 | func (v *LogView) Extras() []string { |
| 119 | if v.silent { |
| 120 | return nil |
| 121 | } |
| 122 | |
| 123 | // NOTE(cyx): For now we only want to return full log information when |
| 124 | // it's an error. |
| 125 | if v.category() != logCategoryFailure { |
| 126 | return nil |
| 127 | } |
| 128 | |
| 129 | raw, _ := yaml.Marshal(v.Log) |
| 130 | return []string{ansi.Faint(indent(string(raw), "\t"))} |
| 131 | } |
| 132 | |
| 133 | func (v *LogView) category() logCategory { |
| 134 | switch logType := v.GetType(); { |
no test coverage detected