Log a warning when a hook exits with error status

The hook's exit status and output were always logged, but only at
debug level.

Change it so that when the exit status is an error (non-zero) it is
logged at warning level.

Change-Id: I4e7079a897e0d88b3c69f392f634096f477f7780
1 file changed
tree: 9c119408ed5c6d2ee244e0a0cce3b6be15cf13d9
  1. src/
  2. .gitignore
  3. BUILD
  4. LICENSE
  5. README.md
README.md

Hooks plugin

Gerrit does not support the standard server-side git hooks in the repositories it manages.

This plugin adds support for custom hooks that can be run instead. Refer to the configuration documentation and list of supported hooks for details.