Question: I'm new in Magento 2 and I learning it now. I am trying to customize email templates by editing default **/app/design/frontend/Vendor/Theme/web/css/email-inline.less** file in my theme, but I not understand one thing.

When I commented all lines in this file (and deleted @magento\_import), I clear cache and deploy static files for my theme:

```
grunt clean:Theme && php bin/magento setup:static-content:deploy

```

After this command invoked successfully, I checked files **email-inline.less** and **email-inline.css** in **/pub/static/frontend/Vendor/Theme/Locale/css/** directory.

File **email-inline.less** same as in my theme, but **email-inline.css** for some reason is not empty.

Why does it happen?

Answer: 
`print_r` with Magento models often results in exhausting the memory limit because it prints all the dependencies which can be hundreds of complex objects, sometimes even in circular dependencies.

Instead, use `print_r($object->debug())`, the `debug` method only returns the `_data` array instead of all properties and also detects recursion.

Since you are dealing with an array, you have to call `debug` on all items. You can let Magento do it automatically for you by putting the array into a simple `DataObject`:

```
print_r((new \Magento\Framework\DataObject(['items' => $quoteItems]))->debug());

```

or map the array yourself:

```
print_r(array_map(function($item) { return $item->debug(); }, $quoteItems));

```
You can use like below code.

```
$writer_fail = new \Zend\Log\Writer\Stream(BP . '/var/log/express.log');
$logger_fail = new \Zend\Log\Logger();
$logger_fail->addWriter($writer_fail);
$fail = "you can set your error here";
$logger_fail->info($fail);

```

please make ensure the log file is proper permission is to be set.