Modified log function to prevent strict error messages