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

Function Errorf

base/log/input.go:153–158  ·  view source on GitHub ↗

Errorf is used to log errors that break or impair functionality. The task/process may have to be aborted and tried again later. The system is still operational.

(format string, things ...interface{})

Source from the content-addressed store, hash-verified

151
152// Errorf is used to log errors that break or impair functionality. The task/process may have to be aborted and tried again later. The system is still operational.
153func Errorf(format string, things ...interface{}) {
154 atomic.AddUint64(errLogLines, 1)
155 if fastcheck(ErrorLevel) {
156 log(ErrorLevel, fmt.Sprintf(format, things...), nil)
157 }
158}
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) {

Callers 15

InitializeMethod · 0.92
NewFunction · 0.92
updateAndUpgradeMethod · 0.92
deleteUnfinishedFilesMethod · 0.92
startPlatformSpecificFunction · 0.92
getUpdateResourceFunction · 0.92
UpdateMethod · 0.92
NewFunction · 0.92
addEndpointEntryMethod · 0.92
startFunction · 0.92
loadProfileFunction · 0.92

Calls 2

fastcheckFunction · 0.85
logFunction · 0.85

Tested by 1

TestLoggingFunction · 0.68