diff options
Diffstat (limited to 'util/ec3po/interpreter.py')
-rw-r--r-- | util/ec3po/interpreter.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/ec3po/interpreter.py b/util/ec3po/interpreter.py index 73123b746a..9a0880f49c 100644 --- a/util/ec3po/interpreter.py +++ b/util/ec3po/interpreter.py @@ -133,7 +133,7 @@ class Interpreter(object): command: A string which contains the command to be sent. """ self.ec_cmd_queue.put(command) - self.logger.debug('Commands now in queue: %d', self.ec_cmd_queue.qsize()) + self.logger.log(1, 'Commands now in queue: %d', self.ec_cmd_queue.qsize()) # Add the EC UART as an output to be serviced. if self.connected and self.ec_uart_pty not in self.outputs: @@ -229,7 +229,7 @@ class Interpreter(object): return # Ignore any other commands while in the disconnected state. - self.logger.debug('command: \'%s\'', command) + self.logger.log(1, 'command: \'%s\'', command) if not self.connected: self.logger.debug('Ignoring command because currently disconnected.') return @@ -300,7 +300,7 @@ class Interpreter(object): # Send the command. self.ec_uart_pty.write(cmd) self.ec_uart_pty.flush() - self.logger.debug('Sent command to EC.') + self.logger.log(1, 'Sent command to EC.') if self.enhanced_ec and cmd != EC_SYN: # Now, that we've sent the command, store the current command as the last @@ -320,10 +320,10 @@ class Interpreter(object): def HandleECData(self): """Handle any debug prints from the EC.""" - self.logger.debug('EC has data') + self.logger.log(1, 'EC has data') # Read what the EC sent us. data = os.read(self.ec_uart_pty.fileno(), EC_MAX_READ) - self.logger.debug('got: \'%s\'', binascii.hexlify(data)) + self.logger.log(1, 'got: \'%s\'', binascii.hexlify(data)) if '&E' in data and self.enhanced_ec: # We received an error, so we should retry it if possible. self.logger.warning('Error string found in data.') @@ -341,12 +341,12 @@ class Interpreter(object): # Done interrogating. self.interrogating = False # For now, just forward everything the EC sends us. - self.logger.debug('Forwarding to user...') + self.logger.log(1, 'Forwarding to user...') self.dbg_pipe.send(data) def HandleUserData(self): """Handle any incoming commands from the user.""" - self.logger.debug('Command data available. Begin processing.') + self.logger.log(1, 'Command data available. Begin processing.') data = self.cmd_pipe.recv() # Process the command. self.ProcessCommand(data) |