Added debug to portlogger