MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Fatal

Method Fatal

pkg/util/log/stream_logger.go:383–391  ·  view source on GitHub ↗
(args ...interface{})

Source from the content-addressed store, hash-verified

381}
382
383func (s *StreamLogger) Fatal(args ...interface{}) {
384 s.m.Lock()
385 defer s.m.Unlock()
386
387 msg := fmt.Sprintln(args...)
388
389 s.writeMessage(fatalFn, msg)
390 os.Exit(1)
391}
392
393func (s *StreamLogger) Fatalf(format string, args ...interface{}) {
394 s.m.Lock()

Callers 1

PrintMethod · 0.95

Calls 3

writeMessageMethod · 0.95
LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected