show sdr device log messages in the web configuration

This commit is contained in:
Jakob Ketterl
2022-12-10 19:50:26 +01:00
parent ab40a2934f
commit 13e323cdd2
13 changed files with 133 additions and 34 deletions

View File

@@ -5,10 +5,6 @@ from typing import Optional
from pycsdr.modules import Buffer
from pycsdr.types import Format
import logging
logger = logging.getLogger(__name__)
class DirectSource(SdrSource, metaclass=ABCMeta):
def __init__(self, id, props):
@@ -16,7 +12,7 @@ class DirectSource(SdrSource, metaclass=ABCMeta):
super().__init__(id, props)
def onPropertyChange(self, changes):
logger.debug("restarting sdr source due to property changes: {0}".format(changes))
self.logger.debug("restarting sdr source due to property changes: {0}".format(changes))
self.stop()
self.sleepOnRestart()
self.start()