Lines Matching refs:log_path
80 def collect_log_file(host, log_path, dest_path, use_tmp=False, clean=False, argument
105 logging.info('Collecting %s...', log_path)
108 'file %s.', host.hostname, log_path)
111 file_stats = _get_file_stats(host, log_path)
120 log_path, file_stats.size,
123 _collect_log_file_with_tmpdir(host, log_path, dest_path)
125 _collect_log_file_with_summary(host, log_path, dest_path)
128 log_path, e)
131 path_to_delete = os.path.join(pipes.quote(log_path), '*')
133 path_to_delete = pipes.quote(log_path)
142 def _collect_log_file_with_tmpdir(host, log_path, dest_path): argument
151 host.run('cp -rp %s %s' % (pipes.quote(log_path), pipes.quote(tmpdir)))
152 source_path = os.path.join(tmpdir, os.path.basename(log_path))
233 log_path = os.path.join(crashinfo_dir, 'var')
234 os.makedirs(log_path)
235 collect_log_file(host, constants.LOG_DIR, log_path)
239 log_path = os.path.join(crashinfo_dir, 'pstore')
241 collect_log_file(host, pstore_dir, log_path, use_tmp=True,
246 log_path = os.path.join(
249 log_path, use_tmp=True)