Package SmootLight :: Package behaviors :: Module DebugBehavior
[hide private]
[frames] | no frames]

Source Code for Module SmootLight.behaviors.DebugBehavior

 1  from operationscore.Behavior import *  
 2  from logger import main_log 
 3  import pdb 
4 -class DebugBehavior(Behavior):
5 """DebugBehavior simply writes all of its inputs to the logs, currently at the ERROR level for 6 easy visibility. Will be changed to DEBUG or INFO in the future""" 7
8 - def processResponse(self, sensorInputs, recursiveInputs):
9 if sensorInputs != []: 10 main_log.error('Sensor Inputs: ' + str(sensorInputs)) 11 return ([], [])
12