Skip to content

Commit 566b4fd

Browse files
committed
Remove hard log /tmp/debug.log, close #74
1 parent 0c37baf commit 566b4fd

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

Helper/Register.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ public function __construct(Context $context,
3636
$this->objectFactory = $objectFactory;
3737
$this->qdbHelper = $qdbHelper;
3838
$this->services = $services;
39-
file_put_contents('/tmp/debug.log', __METHOD__.__LINE__.PHP_EOL, FILE_APPEND);
40-
4139
if($this->qdbHelper->isToolbarAccessAllowed() && $this->qdbHelper->isAjaxLoading()) {
42-
file_put_contents('/tmp/debug.log', __METHOD__.__LINE__.PHP_EOL, FILE_APPEND);
43-
4440
register_shutdown_function([$this, 'dumpToFile']);
4541
}
4642
}
@@ -51,21 +47,14 @@ public function __construct(Context $context,
5147
*/
5248
public function dumpToFile()
5349
{
54-
55-
file_put_contents('/tmp/debug.log', __METHOD__.__LINE__.PHP_EOL, FILE_APPEND);
56-
5750
if($this->_getRequest() && $this->_getRequest()->getModuleName()=='quickdevbar') {
58-
file_put_contents('/tmp/debug.log', __METHOD__.__LINE__.PHP_EOL, FILE_APPEND);
5951
return false;
6052
}
61-
file_put_contents('/tmp/debug.log', __METHOD__.__LINE__.PHP_EOL, FILE_APPEND);
6253

6354
foreach ($this->services as $serviceKey => $serviceObj) {
6455
$this->setRegisteredData($serviceKey, $serviceObj->pullData());
6556
}
66-
file_put_contents('/tmp/debug.log', __METHOD__.__LINE__.PHP_EOL, FILE_APPEND);
6757
$content = $this->registeredData->convertToJson();
68-
file_put_contents('/tmp/debug.log', __METHOD__.__LINE__.PHP_EOL, FILE_APPEND);
6958
$this->qdbHelper->setWrapperContent($content);
7059
}
7160

Plugin/Framework/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public function __construct(
2323

2424

2525
public function afterSendResponse(\Magento\Framework\HTTP\PhpEnvironment\Response $subject) {
26-
//file_put_contents('/tmp/test.log', print_r($this->_qdbHelperRegister->getEvents(), true), FILE_APPEND );
26+
2727
}
2828
}

0 commit comments

Comments
 (0)