summaryrefslogtreecommitdiff
path: root/cgi/cron
diff options
context:
space:
mode:
authorRichard Nelson <unixabg@gmail.com>2010-07-04 22:37:15 -0500
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:13 +0100
commit5ef778c2425339ce23ad77131a625532181c3aa8 (patch)
tree9ec3cab62f3016b175e8850bed63eb01632e9ae2 /cgi/cron
parent5ba1ba3e759fc6e96fa7f2cca7afc1e7b8a026fb (diff)
downloadlive-build-5ef778c2425339ce23ad77131a625532181c3aa8.zip
live-build-5ef778c2425339ce23ad77131a625532181c3aa8.tar.gz
Matching logging date format to apache to use log analyzers on l-h.cgi builds.
Diffstat (limited to 'cgi/cron')
-rwxr-xr-xcgi/cron4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/cron b/cgi/cron
index 793aee7..6d1cb86 100755
--- a/cgi/cron
+++ b/cgi/cron
@@ -111,10 +111,10 @@ then
if [ "${_ERRORCONFIG}" -eq "0" ] && [ "${_ERRORBUILD}" -eq "0" ]
then
_STATUS="maybe-successful"
- echo "${_REMOTE_ADDR} - - [${_DATE_END}] \"${_BUILD} ${_LH_ARCHITECTURE}/${_LH_DISTRIBUTION}/${_LH_PACKAGES_LISTS}/${_LH_PACKAGES}\" 200 - \"-\" \"\"">>/var/log/live-cgi.builds
+ echo "${_REMOTE_ADDR} - - `date +[%d/%b/%Y:%H:%m:%S\ %z]` \"${_BUILD} ${_LH_ARCHITECTURE}/${_LH_DISTRIBUTION}/${_LH_PACKAGES_LISTS}/${_LH_PACKAGES}\" 200 - \"-\" \"\"">>/var/log/live-cgi.builds
else
_STATUS="maybe-failed"
- echo "${_REMOTE_ADDR} - - [${_DATE_END}] \"${_BUILD} ${_LH_ARCHITECTURE}/${_LH_DISTRIBUTION}/${_LH_PACKAGES_LISTS}/${_LH_PACKAGES}\" 404 - \"-\" \"\"">>/var/log/live-cgi.builds
+ echo "${_REMOTE_ADDR} - - `date +[%d/%b/%Y:%H:%m:%S\ %z]` \"${_BUILD} ${_LH_ARCHITECTURE}/${_LH_DISTRIBUTION}/${_LH_PACKAGES_LISTS}/${_LH_PACKAGES}\" 404 - \"-\" \"\"">>/var/log/live-cgi.builds
fi
sed -e "s/BUILD/${_BUILD}/g" \