mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-10-12 18:18:01 +00:00
fix edge cases in report generation
with xml parsing error > system disable email by default
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user