putting the debug information into log_file (many tests have this as STDOUT)