]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/System.php
"browser_update" is integer, not boolean
[friendica.git] / src / Core / System.php
index a51ffe0d1fda91fdfa9f83b6b2289e8f1d57e319..8869cebbef735b7a9aeea0ea851d71763cc30c9a 100644 (file)
@@ -220,7 +220,7 @@ class System
 
                proc_close($resource);
 
-               $this->logger->info('Executed "proc_open"', ['command' => $cmdline, 'callstack' => System::callstack(10)]);
+               $this->logger->info('Executed "proc_open"', ['command' => $cmdline]);
        }
 
        /**
@@ -348,7 +348,7 @@ class System
        public static function httpError($httpCode, $message = '', $content = '')
        {
                if ($httpCode >= 400) {
-                       Logger::debug('Exit with error', ['code' => $httpCode, 'message' => $message, 'callstack' => System::callstack(20), 'method' => DI::args()->getMethod(), 'agent' => $_SERVER['HTTP_USER_AGENT'] ?? '']);
+                       Logger::debug('Exit with error', ['code' => $httpCode, 'message' => $message, 'method' => DI::args()->getMethod(), 'agent' => $_SERVER['HTTP_USER_AGENT'] ?? '']);
                }
                DI::apiResponse()->setStatus($httpCode, $message);
 
@@ -381,7 +381,7 @@ class System
        public static function jsonError($httpCode, $content, $content_type = 'application/json')
        {
                if ($httpCode >= 400) {
-                       Logger::debug('Exit with error', ['code' => $httpCode, 'content_type' => $content_type, 'callstack' => System::callstack(20), 'method' => DI::args()->getMethod(), 'agent' => $_SERVER['HTTP_USER_AGENT'] ?? '']);
+                       Logger::debug('Exit with error', ['code' => $httpCode, 'content_type' => $content_type, 'method' => DI::args()->getMethod(), 'agent' => $_SERVER['HTTP_USER_AGENT'] ?? '']);
                }
                DI::apiResponse()->setStatus($httpCode);
                self::jsonExit($content, $content_type);
@@ -524,7 +524,7 @@ class System
        public static function externalRedirect($url, $code = 302)
        {
                if (empty(parse_url($url, PHP_URL_SCHEME))) {
-                       Logger::warning('No fully qualified URL provided', ['url' => $url, 'callstack' => self::callstack(20)]);
+                       Logger::warning('No fully qualified URL provided', ['url' => $url]);
                        DI::baseUrl()->redirect($url);
                }