You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/01/20 11:07:42 UTC

[couchdb] 01/01: Log clustered URIs at startup

This is an automated email from the ASF dual-hosted git repository.

willholley pushed a commit to branch couch_started_message
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 942037234e28e3a1802d77c9fab28dc60923a021
Author: Will Holley <wi...@gmail.com>
AuthorDate: Mon Jan 20 11:05:00 2020 +0000

    Log clustered URIs at startup
    
    Changes the URI logged at startup to report the address(es) that
    `chttpd` is bound to rather than `httpd`. Previously it was a bit
    confusing that it always reported that Couch had started on
    port 5986 which is deprecated and not intended to be user-facing.
---
 src/couch/src/couch_sup.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/couch/src/couch_sup.erl b/src/couch/src/couch_sup.erl
index c4a2e63..44e3126 100644
--- a/src/couch/src/couch_sup.erl
+++ b/src/couch/src/couch_sup.erl
@@ -109,7 +109,7 @@ send_no_admin_account_error_message() ->
     FiveMinutes = 5 * 1000 * 60,
     timer:sleep(FiveMinutes),
     send_no_admin_account_error_message().
-    
+
 maybe_launch_admin_annoyance_reporter() ->
     case os:getenv("COUCHDB_TEST_ADMIN_PARTY_OVERRIDE") of
         false -> ok;
@@ -157,7 +157,7 @@ write_uris() ->
 
 
 get_uris() ->
-    Ip = config:get("httpd", "bind_address"),
+    Ip = config:get("chttpd", "bind_address"),
     lists:flatmap(fun(Uri) ->
         case get_uri(Uri, Ip) of
             undefined -> [];