From fa22cff5be23b439084c759e6666ae1cd6db12ea Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 4 Oct 2014 19:20:38 -0400 Subject: [PATCH] Context - rc.debug.hooks and rc.debug.parser are now valid settings. They are not yet obeyed. --- doc/man/taskrc.5.in | 13 ++++++++++++- src/Context.cpp | 4 ++-- src/commands/CmdShow.cpp | 2 ++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/doc/man/taskrc.5.in b/doc/man/taskrc.5.in index eb3bdd4f4..6c8ea68b6 100644 --- a/doc/man/taskrc.5.in +++ b/doc/man/taskrc.5.in @@ -450,9 +450,20 @@ debug output can be useful. It can also help explain how the command line is being parsed, but the information is displayed in a developer-friendly, not a user-friendly way. +.TP +.B debug.hooks=0 +Controls the hook system diagnostic level. Level 0 means no diagnostics. +Level 1 shows hook call and status. Level 2 also shows I/O. + +.TP +.B debug.parser=0 +Controls the parser diagnostic level. Level 0 means no diagnostics. Level 1 +shows the parse tree. Level 2 shows expression evaluation details. + .TP .B debug.tls=0 -Controls the GnuTLS log level. For 'sync' debugging. +Controls the GnuTLS diagnostic level. For 'sync' debugging. Level 0 means no +diagnostics. Level 9 is the highest. .TP .B alias.rm=delete diff --git a/src/Context.cpp b/src/Context.cpp index f634daf16..0c9f1b0ac 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -768,10 +768,10 @@ void Context::propagateDebug () config.set ("debug.tls", 2); if (! config.has ("debug.hooks")) - config.set ("debug.hooks", 2); + config.set ("debug.hooks", 1); if (! config.has ("debug.parser")) - config.set ("debug.parser", 2); + config.set ("debug.parser", 1); } } diff --git a/src/commands/CmdShow.cpp b/src/commands/CmdShow.cpp index 552aaf70e..94540b750 100644 --- a/src/commands/CmdShow.cpp +++ b/src/commands/CmdShow.cpp @@ -134,6 +134,8 @@ int CmdShow::execute (std::string& output) " dateformat.info" " dateformat.report" " debug" + " debug.hooks" + " debug.parser" " debug.tls" " default.command" " default.due"