change debug to error level