fix: update log level for user agent logging

- Change logging to use Rails.logger.debug instead of
  Rails.logger.debugger for better compatibility.
- Remove unnecessary extra lines in the Sidekiq jobs file.

This commit ensures that log messages are recorded efficiently and
with the correct log level, improving logging practices in the
application.
This commit is contained in:
songtianlun 2025-01-28 01:28:07 +08:00
parent 4020f89271
commit 8cd4c50024
2 changed files with 3 additions and 1 deletions

View File

@ -65,6 +65,8 @@ ActiveAdmin.register_page "Sidekiq Tasks" do
end end
end end
end end
end end
end end

View File

@ -52,7 +52,7 @@ class ApplicationController < ActionController::Base
def log_browser_info def log_browser_info
# 构建详细的浏览器信息 # 构建详细的浏览器信息
Rails.logger.debugger "User Agent: #{request.user_agent}" Rails.logger.debug "User Agent: #{request.user_agent}"
# 如果是被拦截的浏览器,记录额外信息 # 如果是被拦截的浏览器,记录额外信息
# unless browser_allowed? # unless browser_allowed?