Added dropdown for dynamically changing the log level (#962)

This commit is contained in:
Ahmad Farhat
2020-02-24 12:51:27 -05:00
committed by GitHub
parent 2cc1fdf281
commit 4093a89b4a
6 changed files with 79 additions and 0 deletions

View File

@ -234,6 +234,13 @@ class AdminsController < ApplicationController
redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
end
# POST /admins/log_level
def log_level
Rails.logger.level = params[:value].to_i
redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
end
# ROLES
# GET /admins/roles