From 2c1213116ed68fff15169a61d94852c97840dd3c Mon Sep 17 00:00:00 2001 From: Sean Fisk Date: Sat, 5 Sep 2015 18:02:11 -0400 Subject: [PATCH] Log when IP address family not found for interface --- powerline/segments/common/net.py | 1 + 1 file changed, 1 insertion(+) diff --git a/powerline/segments/common/net.py b/powerline/segments/common/net.py index 85bf737b..eb5b4bcf 100644 --- a/powerline/segments/common/net.py +++ b/powerline/segments/common/net.py @@ -118,6 +118,7 @@ else: try: return addrs[family][0]['addr'] except (KeyError, IndexError): + pl.info("No IPv{0} address found for interface {1}", ipv, interface) return None