• Home
  • Raw
  • Download

Lines Matching full:logger

320         if self.connection.logger:
321 self.connection.logger.debug("SB Requesting %s -> %r" % (self.name, self.value))
358 if self.connection.logger:
359 … self.connection.logger.debug("SB Answer %s -> %r -> %s" % (self.name, suboption, self.state))
373 self.logger = None
449 if self.logger:
450 self.logger.info("Negotiated options: %s" % self._telnet_options)
485 if self.logger:
486 self.logger.debug("Negotiating settings: %s" % (items,))
494 if self.logger:
495 self.logger.info("Negotiated settings: %s" % (items,))
542 self.logger = logging.getLogger('pySerial.rfc2217')
543 self.logger.setLevel(LOGGER_LEVELS[value])
544 self.logger.debug('enabled logging')
632 if self.logger:
633 self.logger.info('set BREAK to %s' % ('inactive', 'active')[bool(level)])
642 if self.logger:
643 self.logger.info('set RTS to %s' % ('inactive', 'active')[bool(level)])
652 if self.logger:
653 self.logger.info('set DTR to %s' % ('inactive', 'active')[bool(level)])
698 if self.logger:
699 self.logger.debug("socket error in reader thread: %s" % (e,))
745 if self.logger:
746 self.logger.debug("read thread terminated")
753 if self.logger:
754 self.logger.warning("ignoring Telnet command: %r" % (command,))
772 if self.logger:
773 self.logger.warning("rejected Telnet option: %r" % (option,))
781 if self.logger:
782 self.logger.info("NOTIFY_LINESTATE: %s" % self._linestate)
785 if self.logger:
786 self.logger.info("NOTIFY_MODEMSTATE: %s" % self._modemstate)
800 if self.logger:
801 self.logger.warning("ignoring COM_PORT_OPTION: %r" % (suboption,))
803 if self.logger:
804 self.logger.warning("ignoring subnegotiation: %r" % (suboption,))
858 if self.logger:
859 self.logger.debug('polling modem state')
868 if self.logger:
869 self.logger.warning('poll for modem state failed')
876 if self.logger:
877 self.logger.debug('using cached modem state')
909 def __init__(self, serial_port, connection, logger=None): argument
912 self.logger = logger
937 if self.logger:
938 self.logger.debug("requesting initial Telnet/RFC 2217 options")
956 if self.logger:
957 self.logger.info("client accepts RFC 2217")
1001 if self.logger:
1002 self.logger.info("NOTIFY_MODEMSTATE: %s" % (modemstate,))
1089 if self.logger:
1090 self.logger.warning("ignoring Telnet command: %r" % (command,))
1108 if self.logger:
1109 self.logger.warning("rejected Telnet option: %r" % (option,))
1115 if self.logger:
1116 self.logger.debug('received COM_PORT_OPTION: %r' % (suboption,))
1124 if self.logger:
1125 self.logger.error("failed to set baud rate: %s" % (e,))
1128 if self.logger:
1129 … self.logger.info("%s baud rate: %s" % (baudrate and 'set' or 'get', self.serial.baudrate))
1138 if self.logger:
1139 self.logger.error("failed to set data size: %s" % (e,))
1142 if self.logger:
1143 … self.logger.info("%s data size: %s" % (datasize and 'set' or 'get', self.serial.bytesize))
1152 if self.logger:
1153 self.logger.error("failed to set parity: %s" % (e,))
1156 if self.logger:
1157 … self.logger.info("%s parity: %s" % (parity and 'set' or 'get', self.serial.parity))
1169 if self.logger:
1170 self.logger.error("failed to set stop bits: %s" % (e,))
1173 if self.logger:
1174 … self.logger.info("%s stop bits: %s" % (stopbits and 'set' or 'get', self.serial.stopbits))
1190 if self.logger:
1191 self.logger.info("changed flow control to None")
1195 if self.logger:
1196 self.logger.info("changed flow control to XON/XOFF")
1200 if self.logger:
1201 self.logger.info("changed flow control to RTS/CTS")
1204 if self.logger:
1205 self.logger.warning("requested break state - not implemented")
1209 if self.logger:
1210 self.logger.info("changed BREAK to active")
1214 if self.logger:
1215 self.logger.info("changed BREAK to inactive")
1218 if self.logger:
1219 self.logger.warning("requested DTR state - not implemented")
1223 if self.logger:
1224 self.logger.info("changed DTR to active")
1228 if self.logger:
1229 self.logger.info("changed DTR to inactive")
1232 if self.logger:
1233 self.logger.warning("requested RTS state - not implemented")
1238 if self.logger:
1239 self.logger.info("changed RTS to active")
1243 if self.logger:
1244 self.logger.info("changed RTS to inactive")
1260 if self.logger:
1261 self.logger.info("request for modem state")
1265 if self.logger:
1266 self.logger.info("suspend")
1269 if self.logger:
1270 self.logger.info("resume")
1274 if self.logger:
1275 self.logger.info("line state mask: 0x%02x" % (self.linstate_mask,))
1278 if self.logger:
1279 self.logger.info("modem state mask: 0x%02x" % (self.modemstate_mask,))
1283 if self.logger:
1284 self.logger.info("purge in")
1288 if self.logger:
1289 self.logger.info("purge out")
1294 if self.logger:
1295 self.logger.info("purge both")
1298 if self.logger:
1299 self.logger.error("undefined PURGE_DATA: %r" % list(suboption[2:]))
1301 if self.logger:
1302 self.logger.error("undefined COM_PORT_OPTION: %r" % list(suboption[1:]))
1304 if self.logger:
1305 self.logger.warning("unknown subnegotiation: %r" % (suboption,))