mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This reverts commit d1a0ccda46
.
This commit is contained in:
@@ -23,8 +23,6 @@
|
||||
* @author Tony Murray <murraytony@gmail.com>
|
||||
*/
|
||||
|
||||
use LibreNMS\Util\Laravel;
|
||||
|
||||
if (!function_exists('d_echo')) {
|
||||
/**
|
||||
* Legacy convenience function - please use this instead of 'if ($debug) { echo ...; }'
|
||||
@@ -37,7 +35,7 @@ if (!function_exists('d_echo')) {
|
||||
{
|
||||
global $debug;
|
||||
|
||||
if (Laravel::isBooted()) {
|
||||
if (class_exists('\Log')) {
|
||||
\Log::debug(is_string($text) ? rtrim($text) : $text);
|
||||
} elseif ($debug) {
|
||||
print_r($text);
|
||||
|
Reference in New Issue
Block a user