From 80367d05d8e11cd9acd5fb66968e9766dccca294 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Mon, 29 Oct 2018 19:50:40 -0400 Subject: [PATCH] Remove functions remove functions that were moved to Logger class --- include/text.php | 47 +---------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/include/text.php b/include/text.php index 48351f59e9..aae7393122 100644 --- a/include/text.php +++ b/include/text.php @@ -381,51 +381,6 @@ function attribute_contains($attr, $s) { return (count($a) && in_array($s,$a)); } - -/** - * @brief Logs the given message at the given log level - * - * log levels: - * LOGGER_WARNING - * LOGGER_INFO (default) - * LOGGER_TRACE - * LOGGER_DEBUG - * LOGGER_DATA - * LOGGER_ALL - * - * @global array $LOGGER_LEVELS - * @param string $msg - * @param int $level - */ -function logger($msg, $level = LOGGER_INFO) -{ - Logger::log($msg, $level); -} - -/** - * @brief An alternative logger for development. - * Works largely as logger() but allows developers - * to isolate particular elements they are targetting - * personally without background noise - * - * log levels: - * LOGGER_WARNING - * LOGGER_INFO (default) - * LOGGER_TRACE - * LOGGER_DEBUG - * LOGGER_DATA - * LOGGER_ALL - * - * @global array $LOGGER_LEVELS - * @param string $msg - * @param int $level - */ -function dlogger($msg, $level = LOGGER_INFO) -{ - Logger::devLog($msg, $level); -} - - /** * Compare activity uri. Knows about activity namespace. * @@ -1267,7 +1222,7 @@ function base64url_encode($s, $strip_padding = false) { function base64url_decode($s) { if (is_array($s)) { - logger('base64url_decode: illegal input: ' . print_r(debug_backtrace(), true)); + Logger::log('base64url_decode: illegal input: ' . print_r(debug_backtrace(), true)); return $s; } -- 2.39.5