From: Frédéric Péters Date: Wed, 17 Apr 2024 10:15:55 +0000 (+0200) Subject: switch-jack: fix logging X-Git-Url: https://git.0d.be/?p=django-panik-nonstop.git;a=commitdiff_plain;h=HEAD switch-jack: fix logging --- diff --git a/nonstop/management/commands/switch-jack.py b/nonstop/management/commands/switch-jack.py index 83580b1..71bd78c 100644 --- a/nonstop/management/commands/switch-jack.py +++ b/nonstop/management/commands/switch-jack.py @@ -51,7 +51,7 @@ class Command(BaseCommand): continue if msg.get('active') != self.currently_active: self.currently_active = msg.get('active') - logger.info('setting source: %s', active) + logger.info('setting source: %s', self.currently_active) self.update_jack_connections(self.currently_active) elif msg.type == aiohttp.WSMsgType.ERROR: break