Remove logging statements
This commit is contained in:
@@ -17,7 +17,8 @@ from __future__ import annotations
|
||||
|
||||
import threading
|
||||
import time
|
||||
import traceback
|
||||
|
||||
# import traceback
|
||||
from enum import Enum
|
||||
|
||||
import numpy as np
|
||||
@@ -114,7 +115,7 @@ class AcsSignal(SocketSignal):
|
||||
now = time.time()
|
||||
interval = now - self.last_get
|
||||
self.last_get = now
|
||||
logger.info(f"Get signal with tag {self.tag}, time to last get: {interval*1e3} ms")
|
||||
# logger.info(f"Get signal with tag {self.tag}, time to last get: {interval*1e3} ms")
|
||||
# logger.info(f"socket_get called from: {traceback.format_stack()}")
|
||||
|
||||
def convert(val):
|
||||
@@ -148,7 +149,7 @@ class AcsSignal(SocketSignal):
|
||||
self.controller.set_var(self.tag, convert(v), self.prec, i)
|
||||
|
||||
def subscribe(self, callback, event_type=None, run=True):
|
||||
logger.info(f"subscribe to signal {self.tag} called from: {traceback.format_stack()}")
|
||||
# logger.info(f"subscribe to signal {self.tag} called from: {traceback.format_stack()}")
|
||||
self._ensure_polling()
|
||||
cid = super().subscribe(callback, event_type=event_type, run=run)
|
||||
return cid
|
||||
|
||||
Reference in New Issue
Block a user