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

Function Warningf

base/log/input.go:137–142  ·  view source on GitHub ↗

Warningf is used to log (potentially) bad events, but nothing broke (even a little) and there is no need to panic yet.

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

Source from the content-addressed store, hash-verified

135
136// Warningf is used to log (potentially) bad events, but nothing broke (even a little) and there is no need to panic yet.
137func Warningf(format string, things ...interface{}) {
138 atomic.AddUint64(warnLogLines, 1)
139 if fastcheck(WarningLevel) {
140 log(WarningLevel, fmt.Sprintf(format, things...), nil)
141 }
142}
143
144// Error 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. Maybe User/Admin should be informed.
145func Error(msg string) {

Callers 15

quickScalePNGFunction · 0.92
notifyMethod · 0.92
findConflictingProcessFunction · 0.92
startFunction · 0.92
startListenerFunction · 0.92
stopFunction · 0.92
getListenAddressesFunction · 0.92
handleRequestAsWorkerFunction · 0.92
handleRequestFunction · 0.92
updateAndUpgradeMethod · 0.92
updateIndexMethod · 0.92

Calls 2

fastcheckFunction · 0.85
logFunction · 0.85

Tested by 1

TestLoggingFunction · 0.68