Skip to content

Commit

Permalink
MAGETWO-52767: [Github] Not possible to disable DEBUG logging #4362
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftedreality committed Jun 14, 2016
1 parent a29f10c commit 1e98f7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
Expand Up @@ -61,7 +61,7 @@ public function write(array $record)

if (
$this->state->getMode() === State::MODE_PRODUCTION
|| !$this->scopeConfig->getValue('debug_logging', ScopeInterface::SCOPE_STORE, $storeCode)
|| !$this->scopeConfig->getValue('dev/debug/debug_logging', ScopeInterface::SCOPE_STORE, $storeCode)
) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function testWrite()
->willReturn(State::MODE_DEVELOPER);
$this->scopeConfigMock->expects($this->once())
->method('getValue')
->with('debug_logging', ScopeInterface::SCOPE_STORE, 'test_code')
->with('dev/debug/debug_logging', ScopeInterface::SCOPE_STORE, 'test_code')
->willReturn(true);

$this->model->write(['formatted' => false]);
Expand Down Expand Up @@ -115,7 +115,7 @@ public function testWriteDisabledByConfig()
->willReturn(State::MODE_DEVELOPER);
$this->scopeConfigMock->expects($this->once())
->method('getValue')
->with('debug_logging', ScopeInterface::SCOPE_STORE, 'test_code')
->with('dev/debug/debug_logging', ScopeInterface::SCOPE_STORE, 'test_code')
->willReturn(false);

$this->model->write(['formatted' => false]);
Expand Down

0 comments on commit 1e98f7e

Please sign in to comment.