self.json_logger.info("Temperature too high (%s > %s)"%(cpu_temp,max_temp),extra={'data':data})
promise_success=False
else:
ifavg_temp>max_avg_temp:
self.logger.error("Average temperature over the last %s seconds reached threshold: %s degrees celsius (threshold is %s degrees celsius)"%(max_avg_temp_duration,avg_temp,max_avg_temp))