MCPcopy
hub / github.com/safing/portmaster / Critical

Function Critical

base/log/input.go:161–166  ·  view source on GitHub ↗

Critical is used to log events that completely break the system. Operation cannot continue. User/Admin must be informed.

(msg string)

Source from the content-addressed store, hash-verified

159
160// Critical is used to log events that completely break the system. Operation cannot continue. User/Admin must be informed.
161func Critical(msg string) {
162 atomic.AddUint64(critLogLines, 1)
163 if fastcheck(CriticalLevel) {
164 log(CriticalLevel, msg, nil)
165 }
166}
167
168// Criticalf is used to log events that completely break the system. Operation cannot continue. User/Admin must be informed.
169func Criticalf(format string, things ...interface{}) {

Callers 3

loadResolversFunction · 0.92
startInterceptionFunction · 0.92
TestLoggingFunction · 0.85

Calls 2

fastcheckFunction · 0.85
logFunction · 0.85

Tested by 1

TestLoggingFunction · 0.68