@ -44,10 +44,4 @@ class BaseCommand
{ command_class: self.class.name, request_id: request_id }
end
# Can be overriden in specific commands in order to make debugging easier.
# Shouldn't contain any sensitive information
def loggable_params
{}
@ -16,8 +16,8 @@ module OrganizationCommands
notifications_topic.publish(:organization_created, organization.attributes.slice('id', 'name'))
{ organization_name: params[:organization][:name] }
def log_context
super.merge(organization_name: params.dig(:organization, :name))
@ -17,8 +17,8 @@ module OrganizationCommands
notifications_topic.publish(:organization_deleted, id: params[:id])
{ organization_id: params[:id] }
super.merge(organization_id: params[:id])
@ -9,8 +9,8 @@ module OrganizationCommands
organization.save!