warning intsead of error while logging