Skip to content

Commit

Permalink
remove some notices
Browse files Browse the repository at this point in the history
  • Loading branch information
MaurizioBrioschi committed Mar 23, 2017
1 parent 2c141f8 commit 8b647cc
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,13 @@ public function run($args = [], $logIntoMagentoScheduler = true)
$this->magentoRootDir = array_key_exists('root-dir', $args) ? $args['root-dir'] : null;
$this->yaml = array_key_exists('yaml', $args) ? $args['yaml'] : [];

if ($this->input->getOption('disable-logs') || (array_key_exists('disable-logs', $this->yaml['class']))) {

if ($this->input->getOption('disable-logs')) {
$this->areLogsDisabled = true;
} else if (array_key_exists('class', $this->yaml)) {
if(array_key_exists('disable-logs', $this->yaml['class'])){
$this->areLogsDisabled = true;
}
}

/**
Expand Down

0 comments on commit 8b647cc

Please sign in to comment.