From ce67f3bb247a863365979799741233589f50ad48 Mon Sep 17 00:00:00 2001 From: cgonzalez Date: Tue, 26 Oct 2021 13:02:54 +0100 Subject: [PATCH] Improve info for :update_user command --- app/commands/central_user_commands.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/commands/central_user_commands.rb b/app/commands/central_user_commands.rb index ec122cdb98..5bc89aa791 100644 --- a/app/commands/central_user_commands.rb +++ b/app/commands/central_user_commands.rb @@ -14,7 +14,12 @@ class CentralUserCommands def update_user(message) payload = message.payload Carto::Common::CurrentRequest.with_request_id(message.request_id) do - logger.info(message: 'Processing :update_user', class_name: self.class.name) + logger.info( + message: 'Processing :update_user', + remote_user_id: payload['remote_user_id'], + class_name: self.class.name + ) + user_id = payload.delete('remote_user_id') return unless user_id.present? && payload.any?