Increase logging of check_ethernet.hook.
Prior to this change, the only message check_ethernet.hook wrote
to /var/log/messages was to report reboot. Other interesting events
(such as attempting to restart the network) went unreported. This
adds logging messages to check_ethernet.hook to report the first
time ping fails to reach the gateway, and again before attempting to
restart ethernet interfaces.
The motivation for this change is to increase visibility during
unexplained network outages on the DUT.
TEST=run check_ethernet.hook on a DUT with and without a network
Tested-by: Richard Barnette <email@example.com>
Reviewed-by: Prashanth B <firstname.lastname@example.org>
1 file changed