Fixed issue where progress bar is displayed in VERBOSE mode
Added checks in the update method of the ConsoleProgressBar class to prevent it from displaying when log level is set to VERBOSE. This is to prevent cluttering the command-line interface with unnecessary information when running in VERBOSE mode. The changes also are reflected in the changelog.
This commit is contained in:
parent
bcc6f45eb4
commit
3ebdeb0cba
2 changed files with 9 additions and 0 deletions
|
@ -25,6 +25,9 @@
|
|||
|
||||
namespace ncc\Utilities;
|
||||
|
||||
use ncc\CLI\Main;
|
||||
use ncc\Enums\LogLevel;
|
||||
|
||||
class ConsoleProgressBar
|
||||
{
|
||||
/**
|
||||
|
@ -286,6 +289,11 @@
|
|||
*/
|
||||
public function update(): void
|
||||
{
|
||||
if(Resolver::checkLogLevel(LogLevel::VERBOSE, Main::getLogLevel()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if($this->auto_end && $this->value >= $this->max_value)
|
||||
{
|
||||
print($this->renderInformation() . $this->renderProgressBar() . "\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue