Magento logs print array contents -


mage::log works fine me, except when comes printing array info.

for example, if have array $result, , this:

mage::log('[cartcontroller: getdeliverleadtime(country): ' . $result . ')');

in system.log file get: [cartcontroller: getdeliverleadtime~(country): array)

*i want print actual structure , contents of array, normal print_r do.*

if var_dump of array nothing, i.e. [cartcontroller: getdeliverleadtime~(country): ).

if print_r get: [cartcontroller: getdeliverleadtime~(country): 1)

this blocker me can't debug need - if shed light on how magento print contents of arrays in logs, appreciated.

i read on alanstorm.com meant happen default, not me.

thanks paul

you have return print_r string, print_r($result, true) should trick.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -