Skip to content

Commit c75ed7a

Browse files
committed
DeviceServer: use the module logger instead of the device logger.
The DeviceServer used the device logger because that was the only way for its messages to appear on its device log file. But now that the device logs come from each Process, the DeviceServer can use its module logger.
1 parent e71328c commit c75ed7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microscope/deviceserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def clone(self):
136136

137137
def run(self):
138138
cls_name = self._device_def['cls'].__name__
139-
logger = logging.getLogger(cls_name)
139+
logger = logging.getLogger(__name__)
140140

141141
# If the multiprocessing start method is fork, the child
142142
# process gets a copy of the root logger. The copy is

0 commit comments

Comments
 (0)