set loglevel to warn