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 13, 2016
1 parent c0445c4 commit a29f10c
Show file tree
Hide file tree
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
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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.