Browse Source

fixed 注册错误记录日志

pull/342/head
xxqfamous 3 years ago
parent
commit
d6aa23b484
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/accounts_controller.rb

+ 1
- 0
app/controllers/accounts_controller.rb View File

@@ -182,6 +182,7 @@ class AccountsController < ApplicationController
# user.destroy
end
Rails.logger.error("##:register error--#{user.try(:id)},message:#{e.message}")
UserAction.create(:action_id => user.try(:id).to_i, :action_type => "register_error", :user_id => user.try(:id).to_i, :ip => "code: #{register_params[:code]}; login: #{register_params[:login]}; namespace: #{register_params[:namespace]}; password: #{password};")
logger_error(e)
tip_exception(-1, "注册失败")
end


Loading…
Cancel
Save