From 692c4668381adcce9795abdc73cff9138c077839 Mon Sep 17 00:00:00 2001 From: Charles Baynham Date: Tue, 26 May 2020 10:50:03 +0100 Subject: [PATCH] Use logger formatting --- artiq/dashboard/applets_ccb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/dashboard/applets_ccb.py b/artiq/dashboard/applets_ccb.py index 30fa23db6..73e2f23fb 100644 --- a/artiq/dashboard/applets_ccb.py +++ b/artiq/dashboard/applets_ccb.py @@ -183,16 +183,16 @@ class AppletsCCBDock(applets.AppletsDock): else: spec = {"ty": "code", "code": code, "command": command} if applet is None: - logger.debug('Applet {} does not exist: creating'.format(name)) + logger.debug("Applet %s does not exist: creating", name) applet = self.new(name=name, spec=spec, parent=parent) else: if spec != self.get_spec(applet): - logger.debug('Applet {} already exists: updating existing spec'.format(name)) + logger.debug("Applet %s already exists: updating existing spec", name) self.set_spec(applet, spec) if applet.applet_dock: asyncio.ensure_future(applet.applet_dock.restart()) else: - logger.debug('Applet {} already exists and no update required'.format(name)) + logger.debug("Applet %s already exists and no update required", name) if ccbp == "enable": applet.setCheckState(0, QtCore.Qt.Checked)