@@ -271,18 +271,23 @@ delete(VHost, ActingUser) ->
271
271
% % modules, like `rabbit_amqqueue:delete_all_for_vhost(VHost)'. These new
272
272
% % calls would be responsible for the atomicity, not this code.
273
273
% % Clear the permissions first to prohibit new incoming connections when deleting a vhost
274
+ rabbit_log :info (" Clearing permissions in vhost '~ts ' because it's being deleted" , [VHost ]),
274
275
_ = rabbit_auth_backend_internal :clear_permissions_for_vhost (VHost , ActingUser ),
275
276
_ = rabbit_auth_backend_internal :clear_topic_permissions_for_vhost (VHost , ActingUser ),
277
+ rabbit_log :info (" Deleting queues in vhost '~ts ' because it's being deleted" , [VHost ]),
276
278
QDelFun = fun (Q ) -> rabbit_amqqueue :delete (Q , false , false , ActingUser ) end ,
277
279
[begin
278
280
Name = amqqueue :get_name (Q ),
279
281
assert_benign (rabbit_amqqueue :with (Name , QDelFun ), ActingUser )
280
282
end || Q <- rabbit_amqqueue :list (VHost )],
283
+ rabbit_log :info (" Deleting exchanges in vhost '~ts ' because it's being deleted" , [VHost ]),
281
284
[assert_benign (rabbit_exchange :delete (Name , false , ActingUser ), ActingUser ) ||
282
285
# exchange {name = Name } <- rabbit_exchange :list (VHost )],
286
+ rabbit_log :info (" Clearing policies and runtime parameters in vhost '~ts ' because it's being deleted" , [VHost ]),
283
287
_ = rabbit_runtime_parameters :clear_vhost (VHost , ActingUser ),
284
288
_ = [rabbit_policy :delete (VHost , proplists :get_value (name , Info ), ActingUser )
285
289
|| Info <- rabbit_policy :list (VHost )],
290
+ rabbit_log :debug (" Removing vhost '~ts ' from the metadata storage because it's being deleted" , [VHost ]),
286
291
case rabbit_db_vhost :delete (VHost ) of
287
292
true ->
288
293
ok = rabbit_event :notify (
0 commit comments