MCPcopy
hub / github.com/apache/casbin / onLogBeforeEventInLoadPolicy

Method onLogBeforeEventInLoadPolicy

util_log.go:66–68  ·  view source on GitHub ↗

onLogBeforeEventInLoadPolicy initializes logging for LoadPolicy operation.

()

Source from the content-addressed store, hash-verified

64
65// onLogBeforeEventInLoadPolicy initializes logging for LoadPolicy operation.
66func (e *Enforcer) onLogBeforeEventInLoadPolicy() *log.LogEntry {
67 return e.onLogBeforeEvent(log.EventLoadPolicy)
68}
69
70// onLogAfterEventInLoadPolicy finalizes logging for LoadPolicy operation with rule count.
71func (e *Enforcer) onLogAfterEventInLoadPolicy(logEntry *log.LogEntry, newModel model.Model) {

Callers 1

LoadPolicyMethod · 0.95

Calls 1

onLogBeforeEventMethod · 0.95

Tested by

no test coverage detected