Hooks: Improve debugging messages for on-exit hooks
This commit is contained in:
committed by
Paul Beckingham
parent
41003fc78b
commit
6fdf0738a7
@@ -203,7 +203,11 @@ void Hooks::onExit ()
|
|||||||
{
|
{
|
||||||
if (isJSON (*line))
|
if (isJSON (*line))
|
||||||
{
|
{
|
||||||
context.error ("JSON output ignored: {1}");
|
if (_debug >= 2)
|
||||||
|
context.error ("Line of JSON output ignored: " + (*line));
|
||||||
|
|
||||||
|
else if (_debug >= 1)
|
||||||
|
context.error ("Line(s) of JSON output ignored.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user