Skip to content

Commit ef57d4d

Browse files
y2kwakgrooverdan
authored andcommitted
MDEV-36987 Add port information to server socket creation log message
Add port information to server socket creation log message to improve clarity when multiple ports are in use (e.g., default port 3306 and extra_port). Previously, the message only showed "Server socket created on IP: '[IP]'" without port information, making it ambiguous. The modified message now includes the port number: "Server socket created on IP: '[IP]', port: '[PORT]'". All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
1 parent bfbba94 commit ef57d4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/mysqld.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,8 +2398,8 @@ static void activate_tcp_port(uint port,
23982398
else
23992399
{
24002400
ip_sock.address_family= a->ai_family;
2401-
sql_print_information("Server socket created on IP: '%s'.",
2402-
(const char *) ip_addr);
2401+
sql_print_information("Server socket created on IP: '%s', port: '%u'.",
2402+
(const char *) ip_addr, port);
24032403

24042404
if (mysql_socket_getfd(ip_sock) == INVALID_SOCKET)
24052405
{

0 commit comments

Comments
 (0)