Change error log to warn log