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

Function Warning

base/log/input.go:129–134  ·  view source on GitHub ↗

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

(msg string)

Source from the content-addressed store, hash-verified

127
128// Warning is used to log (potentially) bad events, but nothing broke (even a little) and there is no need to panic yet.
129func Warning(msg string) {
130 atomic.AddUint64(warnLogLines, 1)
131 if fastcheck(WarningLevel) {
132 log(WarningLevel, msg, nil)
133 }
134}
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{}) {

Callers 15

handleRequestFunction · 0.92
updatePidsFunction · 0.92
shutdownFunction · 0.92
loadResolversFunction · 0.92
GetDefaultInterfaceFunction · 0.92
startFunction · 0.92
createKextServiceFunction · 0.92
DestroySessionMethod · 0.92
parseFileFunction · 0.92
mainFunction · 0.92
saveMethod · 0.92

Calls 2

fastcheckFunction · 0.85
logFunction · 0.85

Tested by 1

TestLoggingFunction · 0.68