nolint:revive
(stage string, duration time.Duration, ok bool)
| 253 | |
| 254 | //nolint:revive |
| 255 | func (s *stageWriter) end(stage string, duration time.Duration, ok bool) { |
| 256 | s.logBuf.Reset() |
| 257 | |
| 258 | mark := "✔" |
| 259 | if !ok { |
| 260 | mark = "✘" |
| 261 | } |
| 262 | if duration < 0 { |
| 263 | duration = 0 |
| 264 | } |
| 265 | _, _ = fmt.Fprintf(s.w, "=== %s %s [%dms]\n", mark, stage, duration.Milliseconds()) |
| 266 | } |
| 267 | |
| 268 | func (s *stageWriter) Log(createdAt time.Time, level codersdk.LogLevel, line string) { |
| 269 | w := s.w |
no test coverage detected