Loglevel

* fixed the loglevel logic so only lower messages are print out