fix debug output on tornado < 3 error