summaryrefslogtreecommitdiffstats
path: root/scripts/logview
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2013-07-08 17:33:42 +0000
committerSeth Vidal <skvidal@fedoraproject.org>2013-07-08 17:34:09 +0000
commita98ead2ef653f0ac8b3ef6a52ebb6ccb6285038b (patch)
tree0945b009a6c57ae8f651714b1f8c25e88851661d /scripts/logview
parent35f1328a492e78152be5017dcd4660744e616699 (diff)
downloadansible-a98ead2ef653f0ac8b3ef6a52ebb6ccb6285038b.tar.gz
ansible-a98ead2ef653f0ac8b3ef6a52ebb6ccb6285038b.tar.xz
ansible-a98ead2ef653f0ac8b3ef6a52ebb6ccb6285038b.zip
sort the logs by timestamp
Diffstat (limited to 'scripts/logview')
-rwxr-xr-xscripts/logview2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/logview b/scripts/logview
index 1affffdf6..251eb22a0 100755
--- a/scripts/logview
+++ b/scripts/logview
@@ -47,7 +47,7 @@ def parse_args(args):
def search_logs(opts, logfiles):
msg = ''
- for fn in logfiles:
+ for fn in sorted(logfiles):
hostname=os.path.basename(fn).replace('.log', '')
timestamp = os.path.basename(os.path.dirname(fn))
for line in open(fn):