sort logs by path, if timestamp not available, though

This commit is contained in:
Thor77 2016-06-20 21:38:57 +02:00
parent e92ad9e6fe
commit 105f464b9a
1 changed files with 3 additions and 0 deletions

View File

@ -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