From 3148f7e7145e82333e28c9839441ce0184cccc60 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Wed, 26 Jun 2019 15:45:41 +0800 Subject: [PATCH] fix log --- app/services/users_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/users_service.rb b/app/services/users_service.rb index 14289425..6ab6d3f6 100644 --- a/app/services/users_service.rb +++ b/app/services/users_service.rb @@ -343,7 +343,7 @@ class UsersService g = Gitlab.client g.edit_user(@current_user.gid, :password => params[:new_password]) rescue Exception => e - logger.error "change users password failed! ===> #{e}" + Rails.logger.error "change users password failed! ===> #{e.message}" end end #raise @current_user.errors.full_message