imudp: add error msg when listener wasn't created

When udp listener could not be created, an error message containing the ip-address and port is put out.
closes https://github.com/rsyslog/rsyslog/issues/1899
This commit is contained in:
PascalWithopf 2017-10-25 15:19:05 +02:00
parent 436c195d0f
commit 145e6b4d0c

View File

@ -351,6 +351,10 @@ addListner(instanceConf_t *inst)
lcnfLast = newlcnfinfo;
}
}
} else {
errmsg.LogError(0, NO_ERRCODE, "imudp: Could not create udp listener,"
" ignoring port %s bind-address %s.",
port, bindAddr);
}
finalize_it: