Fixed logging issue and added formatting for temp in log message