Change puts call to log with debug to avoid unneeded spam