Skip to content
Snippets Groups Projects
Commit 2aad040d authored by Christoph Schmidt's avatar Christoph Schmidt
Browse files

Changed logging behavior

parent 2938b9f4
No related branches found
No related tags found
No related merge requests found
......@@ -29,16 +29,17 @@ if __name__ == "__main__":
)
#setup_logging()
setup_logging()
app = QApplication()
conf = CaptDevice.Config()
conf.load("CaptDeviceConfig.yaml")
conf.internal_log_enabled = False
model = CaptDevice.Model(conf)
controller = CaptDevice.Controller(model, None, log_file="log.log")
controller = CaptDevice.Controller(model, None)
window = CaptDevice.View(model, controller)
window.show()
......
......@@ -12,7 +12,7 @@ import confighandler as cfg
class CaptDeviceConfig(cfg.ConfigNode):
def __init__(self) -> None:
super().__init__(internal_log=False, internal_log_level=logging.DEBUG)
super().__init__()
self.selected_device_index = cfg.Field(0, friendly_name="Selected device",
description="Selected device from the device list provided by the DreamWaves API.")
......
......@@ -39,9 +39,8 @@ class BaseAD2CaptDevice(cmp.CProcessControl):
capture_process_state_changed = Signal(AD2Constants.CapturingState, name="capture_process_state_changed")
ready_for_recording_changed = Signal(bool, name="ready_for_recording_changed")
def __init__(self, ad2capt_model: AD2CaptDeviceModel, start_capture_flag: Value,
internal_log=True, internal_log_level=logging.WARNING, log_file=None):
super().__init__(internal_log=internal_log, internal_log_level=internal_log_level, log_file=log_file)
def __init__(self, ad2capt_model: AD2CaptDeviceModel, start_capture_flag: Value):
super().__init__()
self.model = ad2capt_model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment