commit | ec05ceaa22e740c1082962f42850a071e518d38a | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Wed May 09 10:07:32 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Wed May 09 10:08:10 2018 +0900 |
tree | e0f63073e7b330d853ca1b05a6a1bd250de9b082 | |
parent | 904b168155108aeb6b0e2f9707d237d46f5873f9 [diff] |
Include hook name in error message when logging output failed Change-Id: I1eb5343ba08baef82023b94f22cea0819e97b864
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/HookTask.java b/src/main/java/com/googlesource/gerrit/plugins/hooks/HookTask.java index edbcc01..3f6e0c7 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/hooks/HookTask.java +++ b/src/main/java/com/googlesource/gerrit/plugins/hooks/HookTask.java
@@ -129,7 +129,7 @@ log.debug("hook[{}] output: {}", name, line); } } catch (IOException iox) { - log.error("Error writing hook output", iox); + log.error("Error writing hook [{}] output", name, iox); } }