Home | History | Annotate | Download | only in server

Lines Matching refs:log_path

78 def collect_log_file(host, log_path, dest_path, use_tmp=False, clean=False,
88 that this check only applies to the exact file passed as log_path. For
93 @param log_path: The remote path to collect the log file from
103 logging.info('Collecting %s...', log_path)
106 'file %s.', host.hostname, log_path)
109 file_stats = _get_file_stats(host, log_path)
118 log_path, file_stats.size,
121 _collect_log_file_with_tmpdir(host, log_path, dest_path)
123 _collect_log_file_with_summary(host, log_path, dest_path)
126 log_path, e)
129 path_to_delete = os.path.join(pipes.quote(log_path), '*')
131 path_to_delete = pipes.quote(log_path)
140 def _collect_log_file_with_tmpdir(host, log_path, dest_path):
144 @param log_path: The remote path to collect the log file from.
149 host.run('cp -rp %s %s' % (pipes.quote(log_path), pipes.quote(tmpdir)))
150 source_path = os.path.join(tmpdir, os.path.basename(log_path))
231 log_path = os.path.join(crashinfo_dir, 'var')
232 os.makedirs(log_path)
233 collect_log_file(host, constants.LOG_DIR, log_path)
237 log_path = os.path.join(crashinfo_dir, 'pstore')
239 collect_log_file(host, pstore_dir, log_path, use_tmp=True,
244 log_path = os.path.join(
247 log_path, use_tmp=True)