mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Hooks: With rc.debug.hooks=2, shows hook arguments
This commit is contained in:
parent
3f457dc744
commit
0a54d46589
1 changed files with 8 additions and 3 deletions
|
@ -569,13 +569,18 @@ int Hooks::callHookScript (
|
|||
for (i = input.begin (); i != input.end (); ++i)
|
||||
inputStr += *i + "\n";
|
||||
|
||||
std::string outputStr;
|
||||
std::vector <std::string> args;
|
||||
int status;
|
||||
|
||||
buildHookScriptArgs (args);
|
||||
if (_debug >= 2)
|
||||
{
|
||||
context.debug ("Hooks: args");
|
||||
for (auto arg: args)
|
||||
context.debug (" " + arg);
|
||||
}
|
||||
|
||||
// Measure time for each hook if running in debug
|
||||
int status;
|
||||
std::string outputStr;
|
||||
if (_debug >= 2)
|
||||
{
|
||||
Timer timer_per_hook("Hooks::execute (" + script + ")");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue