Moved debug alert to log