mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
System: Log Files: Boot - empty log view due to minor regression in c522ecac65
This commit is contained in:
parent
9d6d7f7003
commit
6e409a0a2f
@ -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)))
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user