System: Log Files: Boot - empty log view due to minor regression in c522ecac65

This commit is contained in:
Ad Schellevis 2024-07-03 18:23:26 +02:00
parent 9d6d7f7003
commit 6e409a0a2f
2 changed files with 2 additions and 3 deletions

View File

@ -140,8 +140,8 @@ class LogMatcher:
filenames = glob.glob("%s/%s_*.log" % (log_basename, log_basename.split('/')[-1].split('.')[0]))
for filename in sorted(filenames, reverse=True):
log_filenames.append(filename)
# legacy log output is always stashed last
log_filenames.append("%s.log" % log_basename)
# legacy log output is always stashed last
log_filenames.append("%s.log" % log_basename)
if module != 'core':
log_filenames.append("/var/log/%s_%s.log" % (module, os.path.basename(filename)))

View File

@ -52,7 +52,6 @@ if __name__ == '__main__':
if inputargs.filename != "":
limit = int(inputargs.limit) if inputargs.limit.isdigit() else 0
offset = int(inputargs.offset) if inputargs.offset.isdigit() else 0
severity = inputargs.severity.split(',') if inputargs.severity.strip() != '' else []
log_matcher = LogMatcher(inputargs.filter, inputargs.filename, inputargs.module, inputargs.severity)
for record in log_matcher.match_records():
result['total_rows'] += 1