mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-05 00:15:17 +00:00
[#899] fixed log messages
This commit is contained in:
@@ -39,12 +39,11 @@ buffer holding the DHCPv4 message. The arguments specify the source and
|
||||
destination IPv4 addresses as well as the interface over which the buffer has
|
||||
been received.
|
||||
|
||||
% DHCP4_BUFFER_WAIT_SIGNAL signal received while waiting for next packet, next waiting signal is %1
|
||||
% DHCP4_BUFFER_WAIT_SIGNAL signal received while waiting for next packet
|
||||
This debug message is issued when the server was waiting for the
|
||||
packet, but the wait has been interrupted by the signal received
|
||||
by the process. The signal will be handled before the server starts
|
||||
waiting for next packets. The argument specifies the next signal to
|
||||
be handled by the server.
|
||||
waiting for next packets.
|
||||
|
||||
% DHCP4_CB_ON_DEMAND_FETCH_UPDATES_FAIL error on demand attempt to fetch configuration updates from the configuration backend(s): %1
|
||||
This error message is issued when the server attempted to fetch
|
||||
|
@@ -990,6 +990,12 @@ Dhcpv4Srv::run_one() {
|
||||
// second.
|
||||
|
||||
} catch (const SignalInterruptOnSelect&) {
|
||||
// Packet reception interrupted because a signal has been received.
|
||||
// This is not an error because we might have received a SIGTERM,
|
||||
// SIGINT, SIGHUP or SIGCHLD which are handled by the server. For
|
||||
// signals that are not handled by the server we rely on the default
|
||||
// behavior of the system.
|
||||
LOG_DEBUG(packet4_logger, DBG_DHCP4_DETAIL, DHCP4_BUFFER_WAIT_SIGNAL);
|
||||
} catch (const std::exception& e) {
|
||||
// Log all other errors.
|
||||
LOG_ERROR(packet4_logger, DHCP4_BUFFER_RECEIVE_FAIL).arg(e.what());
|
||||
|
@@ -46,12 +46,11 @@ buffer holding the DHCPv6 message. The arguments specify the source and
|
||||
destination addresses as well as the interface over which the buffer has
|
||||
been received.
|
||||
|
||||
% DHCP6_BUFFER_WAIT_SIGNAL signal received while waiting for next packet, next waiting signal is %1
|
||||
% DHCP6_BUFFER_WAIT_SIGNAL signal received while waiting for next packet
|
||||
This debug message is issued when the server was waiting for the
|
||||
packet, but the wait has been interrupted by the signal received
|
||||
by the process. The signal will be handled before the server starts
|
||||
waiting for next packets. The argument specifies the next signal to
|
||||
be handled by the server.
|
||||
waiting for next packets.
|
||||
|
||||
% DHCP6_CB_ON_DEMAND_FETCH_UPDATES_FAIL error on demand attempt to fetch configuration updates from the configuration backend(s): %1
|
||||
This error message is issued when the server attempted to fetch
|
||||
|
@@ -574,6 +574,12 @@ void Dhcpv6Srv::run_one() {
|
||||
// second.
|
||||
|
||||
} catch (const SignalInterruptOnSelect&) {
|
||||
// Packet reception interrupted because a signal has been received.
|
||||
// This is not an error because we might have received a SIGTERM,
|
||||
// SIGINT or SIGHUP which are handled by the server. For signals
|
||||
// that are not handled by the server we rely on the default
|
||||
// behavior of the system.
|
||||
LOG_DEBUG(packet6_logger, DBG_DHCP6_DETAIL, DHCP6_BUFFER_WAIT_SIGNAL);
|
||||
} catch (const std::exception& e) {
|
||||
LOG_ERROR(packet6_logger, DHCP6_PACKET_RECEIVE_FAIL).arg(e.what());
|
||||
}
|
||||
|
@@ -45,7 +45,7 @@ typedef std::map<pid_t, ProcessState> ProcessStates;
|
||||
|
||||
/// @brief Implementation of the @c ProcessSpawn class.
|
||||
///
|
||||
/// This impl idiom is used by the @c ProcessSpawn in this case to
|
||||
/// This pimpl idiom is used by the @c ProcessSpawn in this case to
|
||||
/// avoid exposing the internals of the implementation, such as
|
||||
/// custom handling of a SIGCHLD signal, and the conversion of the
|
||||
/// arguments of the executable from the STL container to the array.
|
||||
|
Reference in New Issue
Block a user