FIX moved logging logic outside of site_helper library.