Add minimal wrapper around echo in MDOutputHandler that respects
disabling of output
This commit is contained in:
parent
2024733bba
commit
700bd200ac
|
@ -35,6 +35,20 @@ final class MDOutputHandler {
|
|||
/** @var boolean */
|
||||
private bool $_logfile_status_checked = false;
|
||||
|
||||
/**
|
||||
* Simple echo that is silent during $disable_completely.
|
||||
*
|
||||
* @param string $input Input text.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function echo(string $input):void {
|
||||
|
||||
if (self::$disable_completely === true) return;
|
||||
echo $input;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes log file contents to log file.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user