summaryrefslogtreecommitdiffstats
path: root/scripts/logview
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2013-07-04 04:06:16 +0000
committerSeth Vidal <skvidal@fedoraproject.org>2013-07-04 04:06:16 +0000
commitd91f35cfba4a59e327a64b3e38d3e630addbff3b (patch)
treea0b65e8ca2e9e512c802c91e480fb972f1cdb3a5 /scripts/logview
parenteb5233ffff3024cc7a3cd90d33dd06edf3a52f7a (diff)
downloadansible-d91f35cfba4a59e327a64b3e38d3e630addbff3b.tar.gz
ansible-d91f35cfba4a59e327a64b3e38d3e630addbff3b.tar.xz
ansible-d91f35cfba4a59e327a64b3e38d3e630addbff3b.zip
remove loglist and logview since their entire functionality is merged into show_changed
Diffstat (limited to 'scripts/logview')
-rwxr-xr-xscripts/logview25
1 files changed, 0 insertions, 25 deletions
diff --git a/scripts/logview b/scripts/logview
deleted file mode 100755
index e55d848c1..000000000
--- a/scripts/logview
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-# view the ansible logs
-# takes all the options of grep and passes them straight through - then parses the output so it looks better and readable
-# should only be used on the .log files not the .info files. info files are flat readable
-# example:
-# logview CHANGED /var/log/2013/07/01/mirrorlist/*/*.log
-
-IFS='
-'
-
-for line in `grep -H $@`
-do
- logpath=`echo $line| cut -d: -f1`
- hostname=`basename $logpath`
- echo -n "$hostname "
- echo $line | cut -d: -f2-| cut -f3-4
- json=`echo $line | cut -d: -f2- |cut -f5-`
- echo $json| python -m json.tool 2>/dev/null >&2
- if [ $? != 0 ]; then
- echo "Error parsing json"
- else
- echo $json| python -m json.tool
- fi
-done
-