diff --git a/bumblebee_status/modules/contrib/publicip.py b/bumblebee_status/modules/contrib/publicip.py index 7fba374..ecdbb53 100644 --- a/bumblebee_status/modules/contrib/publicip.py +++ b/bumblebee_status/modules/contrib/publicip.py @@ -36,6 +36,9 @@ import core.decorators import util.format import util.location +import logging + +log = logging.getLogger(__name__) class Module(core.module.Module): @@ -140,10 +143,10 @@ class Module(core.module.Module): core.event.trigger("update", [widget.module.id], redraw_only=True) except Exception as ex: widget.set("public_ip", None) - print(ex) + logging.error(str(ex)) def state(self, widget): return widget.get("state", None) -# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 \ No newline at end of file +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4