diff options
author | Milind Changire <mchangir@redhat.com> | 2018-12-12 09:23:11 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-12-12 15:59:56 +0000 |
commit | c9d117d54aea1d775e0eef1881892d11fa12811e (patch) | |
tree | d77d867b15807bad04aec0ac156728324720b121 | |
parent | 7dadea15c58eb92e5f5727190bf9446dd6fe7a3c (diff) |
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 <mchangir@redhat.com>
-rw-r--r-- | libglusterfs/src/common-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 51d33e813ce..985e7580050 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; |