changed logger output for warning to be WARNING