Removed excessive debug logging
This commit is contained in:
parent
43c8fea37f
commit
9bddca6aaa
1 changed files with 0 additions and 8 deletions
|
|
@ -191,15 +191,10 @@ class ExtensibleSerialInstrument(object):
|
||||||
will keep reading until a termination phrase is reached.
|
will keep reading until a termination phrase is reached.
|
||||||
"""
|
"""
|
||||||
with self.communications_lock:
|
with self.communications_lock:
|
||||||
logging.debug("Flushing input buffer...")
|
|
||||||
self.flush_input_buffer()
|
self.flush_input_buffer()
|
||||||
logging.debug(f"Writing query: {queryString}")
|
|
||||||
self.write(queryString)
|
self.write(queryString)
|
||||||
logging.debug("Query written")
|
|
||||||
if self.ignore_echo == True: # Needs Implementing for a multiline read!
|
if self.ignore_echo == True: # Needs Implementing for a multiline read!
|
||||||
logging.debug("Reading first line...")
|
|
||||||
first_line = self.readline(timeout).strip()
|
first_line = self.readline(timeout).strip()
|
||||||
logging.debug(f"Read finished. Got {first_line}")
|
|
||||||
if first_line == queryString:
|
if first_line == queryString:
|
||||||
return self.readline(timeout).strip()
|
return self.readline(timeout).strip()
|
||||||
else:
|
else:
|
||||||
|
|
@ -209,14 +204,11 @@ class ExtensibleSerialInstrument(object):
|
||||||
if termination_line is not None:
|
if termination_line is not None:
|
||||||
multiline = True
|
multiline = True
|
||||||
if multiline:
|
if multiline:
|
||||||
logging.debug("Reading multiline...")
|
|
||||||
return self.read_multiline(termination_line)
|
return self.read_multiline(termination_line)
|
||||||
else:
|
else:
|
||||||
logging.debug("Reading response...")
|
|
||||||
line = self.readline(
|
line = self.readline(
|
||||||
timeout
|
timeout
|
||||||
).strip() # question: should we strip the final newline?
|
).strip() # question: should we strip the final newline?
|
||||||
logging.debug(f"Read finished. Got {line}")
|
|
||||||
return line
|
return line
|
||||||
|
|
||||||
def parsed_query(
|
def parsed_query(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue