Fixed small but very annoying bug in logging system which caused that error levels were not used