Audit log view

move error logs to logs
Add links for new logs in header
This commit is contained in:
Aaron Kimbre
2022-02-12 15:30:43 -06:00
parent 24a398b89c
commit d77eaf16d1
5 changed files with 110 additions and 24 deletions

View File

@@ -40,11 +40,3 @@ def favicon():
'favicon.ico',
mimetype='image/vnd.microsoft.icon'
)
@main_blueprint.route('/logs')
@gm_level(9)
def logs():
with open('nexus_dashboard.log', 'r') as file:
logs = '</br>'.join(file.read().split('\n')[-100:])
return render_template('main/logs.html.j2', logs=logs)
return '</br>'.join(all_read_text.splitlines()[-total_lines_wanted:])