From 105f464b9aa6b03f2ca76481c1e5100c852c4a62 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 20 Jun 2016 21:38:57 +0200 Subject: [PATCH] sort logs by path, if timestamp not available, though --- tsstats/log.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tsstats/log.py b/tsstats/log.py index 2aec053..38a72cd 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -76,6 +76,9 @@ def _bundle_logs(logs): # fallback to plain sorting vserver_logfiles.setdefault('', [])\ .append(TimedLog(log, None)) + vserver_logfiles[''] =\ + sorted(vserver_logfiles[''], + key=lambda tl: tl.path) return vserver_logfiles