fixed DEBUG to be set when loglevel is set to DEBUG.