From c9d117d54aea1d775e0eef1881892d11fa12811e Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Wed, 12 Dec 2018 09:23:11 +0530 Subject: core: move invalid port logs to DEBUG log level Stop spamming "invalid port" logs in case sysadmin has reserved a large number of ports. Change-Id: I244ef7693560cc404b36cadc6b05d92ec0e908d3 fixes: bz#1656517 Signed-off-by: Milind Changire --- libglusterfs/src/common-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 51d33e813c..985e758005 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -3259,7 +3259,7 @@ gf_ports_reserved(char *blocked_port, unsigned char *ports, uint32_t ceiling) if (blocked_port[strlen(blocked_port) - 1] == '\n') blocked_port[strlen(blocked_port) - 1] = '\0'; if (gf_string2int32(blocked_port, &tmp_port1) == 0) { - if (tmp_port1 > ceiling || tmp_port1 < 0) { + if (tmp_port1 > GF_PORT_MAX || tmp_port1 < 0) { gf_msg("glusterfs-socket", GF_LOG_WARNING, 0, LG_MSG_INVALID_PORT, "invalid port %d", tmp_port1); result = _gf_true; -- cgit