Replaced error alerts with log