Tickets #1921 and #1922: Removing debugging call to console.log