Open tcmitchell opened 7 years ago
Using print_r
results in a lengthy log message that includes the AM URL(s), special characters (representing newlines), and all the extra Array stuff PHP wants to display. It avoids the warning message, but clutters up the syslog significantly. Is there benefit to listing the AM URL(s)? Or is user and slice info enough?
In several places in
am_client.php
the array of AM URLs is included in a string which causes a warning in the portal log: Array to string conversion in /usr/share/geni-ch/lib/php/am_client.php on line 811.We could instead use
print_r($am_urls, TRUE)
to explicitly create a string and avoid the warning message.