diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2017-07-05 14:55:18 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2017-07-05 14:55:18 +0300 |
| commit | dbc504d2e02ec0220365dde53b194969fa9b7910 (patch) | |
| tree | c366149febdbf1f88a322edac4e157ff860dc7e9 | |
| parent | 20a0316717478e1c6ade89d6a7ea490db4ca88ef (diff) | |
| download | rabbitmq-server-git-dbc504d2e02ec0220365dde53b194969fa9b7910.tar.gz | |
rabbit_vhost_sup_watcher: log a warning
The watcher can discover that a vhost does not exits but
the process tree is still there in normal operation
(concurrent vhost setup and deletion), so a warning
makes more sense here.
| -rw-r--r-- | src/rabbit_vhost_sup_watcher.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_vhost_sup_watcher.erl b/src/rabbit_vhost_sup_watcher.erl index 5922c40d84..be2c5f20bb 100644 --- a/src/rabbit_vhost_sup_watcher.erl +++ b/src/rabbit_vhost_sup_watcher.erl @@ -49,9 +49,9 @@ handle_info(check_vhost, VHost) -> case rabbit_vhost:exists(VHost) of true -> {noreply, VHost}; false -> - rabbit_log:error("Virtual host '~s' is gone. " - "Stopping its top level supervisor.", - [VHost]), + rabbit_log:warning("Virtual host '~s' is gone. " + "Stopping its top level supervisor.", + [VHost]), %% Stop vhost's top supervisor in a one-off process to avoid a deadlock: %% us (a child process) waiting for supervisor shutdown and our supervisor(s) %% waiting for us to shutdown. |
