From e2f35a1a06ba40dbdff25c8d2b93d8f39f67c087 Mon Sep 17 00:00:00 2001 From: Wilhelm Schuermann Date: Tue, 24 Feb 2015 21:09:48 +0100 Subject: [PATCH] Hooks - onAdd, onExit, onLaunch and onModify hooks now output feedback messages as footnotes when hooks exit with status 0, as per hooks documentation. --- ChangeLog | 1 + src/Hooks.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9893ec545..ddb9c00c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ - Implemented the context feature. - Closed dangling pipes in execute (), resolving problems when a hook script forks (thanks to Jens Erat). +- Re-enabled hook script feedback when exiting with 0 exit status. ------ current release --------------------------- diff --git a/src/Hooks.cpp b/src/Hooks.cpp index 342b5f3b1..f1f99d1c8 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -141,7 +141,7 @@ void Hooks::onLaunch () { std::vector ::iterator message; for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message) - context.debug (*message); + context.footnote (*message); } else { @@ -208,7 +208,7 @@ void Hooks::onExit () { std::vector ::iterator message; for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message) - context.debug (*message); + context.footnote (*message); } else { @@ -274,7 +274,7 @@ void Hooks::onAdd (Task& task) std::vector ::iterator message; for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message) - context.debug (*message); + context.footnote (*message); } else { @@ -345,7 +345,7 @@ void Hooks::onModify (const Task& before, Task& after) std::vector ::iterator message; for (message = outputFeedback.begin (); message != outputFeedback.end (); ++message) - context.debug (*message); + context.footnote (*message); } else {