MCPcopy Create free account
hub / github.com/PasarGuard/node / emitLog

Method emitLog

backend/wireguard/log.go:39–44  ·  view source on GitHub ↗
(severity logSeverity, message string)

Source from the content-addressed store, hash-verified

37}
38
39func (wg *WireGuard) emitLog(severity logSeverity, message string) {
40 wg.mu.RLock()
41 defer wg.mu.RUnlock()
42
43 wg.emitLogLocked(severity, message)
44}
45
46// emitLogLocked sends to the backend log channel while the caller already holds wg.mu.
47func (wg *WireGuard) emitLogLocked(severity logSeverity, message string) {

Callers 1

emitLogfMethod · 0.95

Calls 1

emitLogLockedMethod · 0.95

Tested by

no test coverage detected