update documentation of tsstats.log._sort_logfiles to fit updated scope

This commit is contained in:
Thor77 2016-06-19 22:21:02 +02:00
parent 37a9841900
commit 0c57b27abc
1 changed files with 4 additions and 8 deletions

View File

@ -29,19 +29,15 @@ logger = logging.getLogger('tsstats')
def _sort_logfiles(log_glob): def _sort_logfiles(log_glob):
''' '''
parse logs specified by globbing pattern `log_glob` collect logfiles from `log_glob` and sort them by date
and bundle them by virtualserver-id
basic parsing is done here: extracting sid and splitting
and then given to _parse_details
:param log_glob: path to log-files (supports globbing) :param log_glob: path to log-files (supports globbing)
:param ident_map: :doc:`identmap`
:type log_glob: str :type log_glob: str
:type ident_map: dict
:return: parsed clients :return: log-files sorted by date and bundled virtualserver-id
:rtype: tsstats.client.Clients :rtype: dict{str: [TimedLog]}
''' '''
vserver_logfiles = {} # sid: [/path/to/log1, ..., /path/to/logn] vserver_logfiles = {} # sid: [/path/to/log1, ..., /path/to/logn]
for log_file in sorted(log_file for log_file in glob(log_glob)): for log_file in sorted(log_file for log_file in glob(log_glob)):