]> git.mxchange.org Git - friendica.git/blobdiff - src/App/Page.php
Merge pull request #11647 from Quix0r/fixes/type-error-exception
[friendica.git] / src / App / Page.php
index c78d0f9e0c53b5f95a4a34774b62bfdfcf9f52a0..d38757687c99929bd62b8055fa7d78be1ac6a317 100644 (file)
@@ -98,7 +98,7 @@ class Page implements ArrayAccess
                $this->method  = $method;
        }
 
-       public function logRuntime(IManageConfigValues $config)
+       public function logRuntime(IManageConfigValues $config, string $origin = '')
        {
                if (in_array($this->command, $config->get('system', 'runtime_ignore'))) {
                        return;
@@ -106,7 +106,7 @@ class Page implements ArrayAccess
 
                $runtime = number_format(microtime(true) - $this->timestamp, 3);
                if ($runtime > $config->get('system', 'runtime_loglimit')) {
-                       Logger::debug('Runtime', ['method' => $this->method, 'command' => $this->command, 'runtime' => $runtime]);
+                       Logger::debug('Runtime', ['method' => $this->method, 'command' => $this->command, 'runtime' => $runtime, 'origin' => $origin]);
                }
        }