Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Developer/Model/Logger/Handler/Debug.php
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ public function write(array $record)
$this->state->getMode() === State::MODE_PRODUCTION
|| !$this->scopeConfig->getValue('debug_logging', ScopeInterface::SCOPE_STORE, $storeCode)
) {
return null;
return;
}

parent::write($record);
Original file line number Diff line number Diff line change
@@ -102,9 +102,7 @@ public function testWriteDisabledByProduction()
$this->scopeConfigMock->expects($this->never())
->method('getValue');

$this->assertNull(
$this->model->write(['formatted' => false])
);
$this->model->write(['formatted' => false]);
}

public function testWriteDisabledByConfig()
@@ -120,8 +118,6 @@ public function testWriteDisabledByConfig()
->with('debug_logging', ScopeInterface::SCOPE_STORE, 'test_code')
->willReturn(false);

$this->assertNull(
$this->model->write(['formatted' => false])
);
$this->model->write(['formatted' => false]);
}
}

0 comments on commit a29f10c

Please sign in to comment.