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>
This commit is contained in:
parent
7dadea15c5
commit
c9d117d54a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user