From 987d11fa943eaa532b0ba824adfc88e8e3bb1c53 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Mon, 3 Apr 2017 21:27:19 +0200 Subject: [PATCH] Using logger string formatting --- luxafor/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luxafor/cli.py b/luxafor/cli.py index 6a22ba5..201cd60 100644 --- a/luxafor/cli.py +++ b/luxafor/cli.py @@ -45,7 +45,8 @@ def get_matching_led(led: str) -> hex: if led_number: return led_number - logger.info('Led(s) %s not found, falling back to all' % led) + logger.info('Led(s) %(led)s not found, falling back to all', + extra={'led': led}) return luxafor.Leds.ALL