fix actually sending the output to logger