Skip to content

Commit

Permalink
Merge pull request #1146 from ThorvaldLarsen/Ip_loglevel
Browse files Browse the repository at this point in the history
Change loglevel for send/recv in ip.py
  • Loading branch information
jenshnielsen authored Jun 14, 2018
2 parents 634d6c1 + b05c989 commit 45b91fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcodes/instrument/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ def set_terminator(self, terminator):

def _send(self, cmd):
data = cmd + self._terminator
log.info(f"Writing {data} to instrument {self.name}")
log.debug(f"Writing {data} to instrument {self.name}")
self._socket.sendall(data.encode())

def _recv(self):
result = self._socket.recv(self._buffer_size)
log.info(f"Got {result} from instrument {self.name}")
log.debug(f"Got {result} from instrument {self.name}")
if result == b'':
log.warning("Got empty response from Socket recv() "
"Connection broken.")
Expand Down

0 comments on commit 45b91fc

Please sign in to comment.