fix edge cases in report generation

with xml parsing
error > system
disable email by default
This commit is contained in:
Aaron Kimbre
2022-02-25 11:46:13 -06:00
parent 9452e8c801
commit 039b45c824
7 changed files with 44 additions and 31 deletions

View File

@@ -21,12 +21,12 @@ def command():
return render_template('logs/command.html.j2')
@log_blueprint.route('/errors')
@log_blueprint.route('/system')
@gm_level(8)
def error():
def system():
with open('nexus_dashboard.log', 'r') as file:
logs = '</br>'.join(file.read().split('\n')[-100:])
return render_template('logs/error.html.j2', logs=logs)
return render_template('logs/system.html.j2', logs=logs)
@log_blueprint.route('/audits')