logparser: don't return empty AUDIT section

AUDIT events get skipped when parsing the log (they are not relevant for
updating a profile), therefore stop returning an always-empty AUDIT
section when reading the log.
This commit is contained in:
Christian Boltz 2021-04-02 17:37:23 +02:00
parent c734839551
commit 9aa70ab710
Failed to generate hash of commit

View file

@ -32,7 +32,7 @@ class ReadLog:
self.filename = filename
self.profile_dir = profile_dir
self.active_profiles = active_profiles
self.hashlog = { 'PERMITTING': {}, 'REJECTING': {}, 'AUDIT': {} } # structure inside {}: {'profilename': init_hashlog(aamode, profilename), 'profilename2': init_hashlog(...), ...}
self.hashlog = { 'PERMITTING': {}, 'REJECTING': {} } # structure inside {}: {'profilename': init_hashlog(aamode, profilename), 'profilename2': init_hashlog(...), ...}
self.debug_logger = DebugLogger('ReadLog')
self.LOG = None
self.logmark = ''