write warning to logger