From c01effea432fdb553f5399474f719f3b83f6123e Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Fri, 21 Sep 2018 12:07:06 +0200 Subject: keep debug parameters set via getopt in subrequests --- it.class | 3 +++ 1 file changed, 3 insertions(+) diff --git a/it.class b/it.class index 8402f65..7398bfb 100644 --- a/it.class +++ b/it.class @@ -908,6 +908,9 @@ static function getopt($usage, $p = array()) $ultravar = preg_split('/[-=:]/', $ultrad, 2); $GLOBALS["debug_$ultravar[0]"] = isset($ultravar[1]) ? $ultravar[1] : 1; } + + # keep debug parameters in subrequests + $_SERVER['ULTRAHOSTNAME'] = it::replace(['^\.+' => '', '([^.])\.*$' => '\1.'], $result['debug']) . $_SERVER['ULTRAHOSTNAME']; } $GLOBALS['it_stdin']['args'] = $result['args'] ? $result['args'] : array("-"); -- cgit v1.2.3