onLogAfterEventInLoadPolicy finalizes logging for LoadPolicy operation with rule count.
(logEntry *log.LogEntry, newModel model.Model)
| 69 | |
| 70 | // onLogAfterEventInLoadPolicy finalizes logging for LoadPolicy operation with rule count. |
| 71 | func (e *Enforcer) onLogAfterEventInLoadPolicy(logEntry *log.LogEntry, newModel model.Model) { |
| 72 | if e.logger != nil && logEntry != nil { |
| 73 | logEntry.RuleCount = countModelRules(newModel) |
| 74 | _ = e.logger.OnAfterEvent(logEntry) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // onLogBeforeEventInSavePolicy initializes logging for SavePolicy operation with rule count. |
| 79 | func (e *Enforcer) onLogBeforeEventInSavePolicy() *log.LogEntry { |
no test coverage detected