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:
parent
4020f89271
commit
8cd4c50024
@ -65,6 +65,8 @@ ActiveAdmin.register_page "Sidekiq Tasks" do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -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?
|
||||||
|
Loading…
Reference in New Issue
Block a user