From 2b76f9fb85cc10b5ad5218ee6f4dbba9f3971473 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 23 Aug 2016 17:15:43 -0400 Subject: [PATCH] Add logging around interface carrier detection In the event that a user is troubleshooting glean, such as attempting to log what is encountered on boot, it would be helpful to log what is occuring with the carrier check. Otherwise, a user has to have in-depth knowledge of glean in order to troubleshoot. Change-Id: Ie0b3ab75bab19d39cea01cf93628127e524f5561 --- glean/cmd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glean/cmd.py b/glean/cmd.py index fe5f541..36dc2ac 100644 --- a/glean/cmd.py +++ b/glean/cmd.py @@ -628,6 +628,7 @@ def is_interface_live(interface, sys_root): def interface_live(iface, sys_root, args): + log.debug("Checking if interface %s has an active link carrier." % iface) if is_interface_live(iface, sys_root): return True @@ -641,6 +642,7 @@ def interface_live(iface, sys_root, args): if is_interface_live(iface, sys_root): return True time.sleep(.1) + log.debug("Interface %s appears not to have an active link." % iface) return False