From 41a9773c906b03e96992aaacf733d566a9d5a298 Mon Sep 17 00:00:00 2001 From: xxqfamous Date: Mon, 29 May 2023 15:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E5=A4=B1=E8=B4=A5=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/accounts_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 889fc8b97..8a0731870 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -177,7 +177,8 @@ class AccountsController < ApplicationController render_result(-6, e.message) rescue Exception => e Gitea::User::DeleteService.call(user.login) unless user.nil? - uid_logger_error(e.message) + Rails.logger.error("##:register error--#{user.try(:id)}") + logger_error(e) tip_exception(-1, e.message) end end