Give log reference if debugging: added to prevent memory full error message