Commit 83cd7a2b authored by Stephan Großberndt's avatar Stephan Großberndt
Browse files

[FEATURE] Log output of hook executions

parent 3087cfc0
......@@ -5,7 +5,7 @@ HOOK_NAME=$(basename $0)
for file in $HOOK.d/*; do
if [[ -x "$file" ]]; then
echo "Executing hook $HOOK_NAME file $file"
$file --action $HOOK "$@"
echo "Executing hook $HOOK_NAME file $file" >> /var/gerrit/logs/change-merged.log
$file --action $HOOK "$@" >> /var/gerrit/logs/change-merged.log
fi
done
......@@ -5,7 +5,7 @@ HOOK_NAME=$(basename $0)
for file in $HOOK.d/*; do
if [[ -x "$file" ]]; then
echo "Executing hook $HOOK_NAME file $file"
$file --action $HOOK "$@"
echo "Executing hook $HOOK_NAME file $file" >> /var/gerrit/logs/patchset-created.log
$file --action $HOOK "$@" >> /var/gerrit/logs/patchset-created.log
fi
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment