Merge pull request #11687 from ClickHouse/warning-on-listen-failure

Change the level of log message about failure to listen, to warning
This commit is contained in:
alexey-milovidov 2020-06-16 03:28:21 +03:00 committed by GitHub
commit cf3d3bd1b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -869,7 +869,7 @@ int Server::main(const std::vector<std::string> & /*args*/)
if (listen_try)
{
LOG_ERROR(log, "{}. If it is an IPv6 or IPv4 address and your host has disabled IPv6 or IPv4, then consider to "
LOG_WARNING(log, "{}. If it is an IPv6 or IPv4 address and your host has disabled IPv6 or IPv4, then consider to "
"specify not disabled IPv4 or IPv6 address to listen in <listen_host> element of configuration "
"file. Example for disabled IPv6: <listen_host>0.0.0.0</listen_host> ."
" Example for disabled IPv4: <listen_host>::</listen_host>",
@ -1013,7 +1013,8 @@ int Server::main(const std::vector<std::string> & /*args*/)
}
if (servers.empty())
throw Exception("No servers started (add valid listen_host and 'tcp_port' or 'http_port' to configuration file.)", ErrorCodes::NO_ELEMENTS_IN_CONFIG);
throw Exception("No servers started (add valid listen_host and 'tcp_port' or 'http_port' to configuration file.)",
ErrorCodes::NO_ELEMENTS_IN_CONFIG);
global_context->enableNamedSessions();