Revert "Changes to improve testing (#9608)" (#9937)

This reverts commit d1a0ccda46.
This commit is contained in:
Tony Murray
2019-03-12 00:49:14 -05:00
committed by GitHub
parent d1a0ccda46
commit eb648a1d6f
43 changed files with 266 additions and 459 deletions

View File

@@ -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);