Fix not to use logger in average_calc