fixed DEBUG to be set when setting debug log level
Merge pull request #5 from joakimeriksson/master

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